Skip to content

#c68bf2

a light, electric violet · cool · closest name: Violet

RGB
198, 139, 242
HSL
274°, 80%, 75%
CMYK
18, 43, 0, 5
Luminance
0.3688

At a glance

Every number on this page in one read: what #c68bf2 is made of, how bright it looks, and which way it leans.

Hex
#c68bf2
Hue
274°
violet
Saturation
80%
electric
Lightness
75%
light
Brightness
95%
HSV value
Perceived
68%
weighted brightness
Luminance
0.3688
WCAG relative
Temperature
Cool
64/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
8.38:1
Closest name
Violet
ΔE2000 7.9
Where it sits
Hue274° of 360°
Saturation80%
Lightness75%
Temperature
Warm ← → Cool64% cool

Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#c68bf2
RGBrgb(198, 139, 242)
HSLhsl(274, 80%, 75%)
CMYKcmyk(18%, 43%, 0%, 5%)
LABlab(67.2 41.1 -43.3)
LCHlch(67.2 59.7 313.5)
OKLCHoklch(0.734 0.156 309.4)
Decimal13011954
Display P3color(display-p3 0.776 0.545 0.949)

Copy-ready code

/* CSS */
color: #c68bf2;
background-color: #c68bf2;
/* Tailwind (arbitrary) */
class="text-[#c68bf2] bg-[#c68bf2]"
/* SCSS */
$brand: #c68bf2;
/* SwiftUI */
Color(red: 0.776, green: 0.545, blue: 0.949)
/* Android */
Color.parseColor("#c68bf2")
/* Flutter */
Color(0xFFC68BF2)
/* Python / OpenCV (BGR) */
(242, 139, 198)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#000000 on #c68bf2 · 8.38:1
Use #000000AAA at every size.
Aa
White text · 2.51:1
AA fail · AA large fail · AAA fail
Aa
Black text · 8.38:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #c68bf2 as text scores 2.51:1 on white and 8.38:1 on black.

Accessibility — WCAG contrast

Aa
#c68bf2 on white: 2.51:1
AA ✗ fail · AA-large · AAA
Aa
#c68bf2 on black: 8.38:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #74A1F6
deuteranopia · #83A5EF
tritanopia · #C19BB3

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #c68bf2 is pinned to step 300; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F8F3FC
#F1E6F9
#E1C7F5
#c68bf2
#B568EE
#9C35E8
#8919DC
#7215B7
#5B1093
#44106A
#2A0A42
Base = 300Lightest = 50 · #F8F3FCDarkest = 950 · #2A0A42
:root {
  --brand-50: #F8F3FC;
  --brand-100: #F1E6F9;
  --brand-200: #E1C7F5;
  --brand-300: #c68bf2;
  --brand-400: #B568EE;
  --brand-500: #9C35E8;
  --brand-600: #8919DC;
  --brand-700: #7215B7;
  --brand-800: #5B1093;
  --brand-900: #44106A;
  --brand-950: #2A0A42;
  --brand: #c68bf2;
  --brand-ink: #000000;
}

Colors that work with #c68bf2

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#F8F4FA
Tinted page background
Border#D9C0ED
Hairlines and dividers
Muted text#794B9B
Captions on the surface
Accent#85BC10
Second voice, not a rival
Dark variant#470D73
Hover, pressed, headers
Light variant#F4E8FC
Selected rows, tints
Dark surface#1D1424
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #c68bf2

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Card and section backgrounds
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • Full-page backgrounds — tiring over long sessions
  • White text placed on it
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#B7F28B
Analogous left#938BF2
Analogous right#F28BEA
Split-complement 1#EAF28B
Split-complement 2#8BF293
Triadic 1#F2C68B
Triadic 2#8BF2C6
Tetradic#F2938B

RGB percentages

Red77.6%
Green54.5%
Blue94.9%

CMYK percentages

Cyan18.2%
Magenta42.6%
Yellow0.0%
Key (black)5.1%

Color previews

#c68bf2 text on a black background

contrast 8.38:1

Card sample

#c68bf2 text on a white background

contrast 2.51:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #c68bf2;
Background color
Panel with #c68bf2 background
background-color: #c68bf2;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #c68bf2;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(198, 139, 242, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(198, 139, 242, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c68bf2;
background: linear-gradient(135deg, #c68bf2, #F28BD9);

Monochromatic scale

Palettes built from #c68bf2

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#c68bf2 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
Creative toolsFintechBeautyLuxury
Common UI roles
SurfacesBadgesHighlightsEmpty states
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#c68bf2, answered

What color is #c68bf2?

#c68bf2 is a light electric violet, closest to Violet (ΔE2000 7.9). It sits at 274° on the hue wheel with 80% saturation and 75% lightness, which reads as cool.

What is the RGB value of #c68bf2?

rgb(198, 139, 242) — 198 red, 139 green and 242 blue out of 255, or 77.6% / 54.5% / 94.9% by channel.

Is #c68bf2 a light or a dark color?

It is a mid-tone. Relative luminance is 0.3688 and perceived brightness is 68%, so black text on it reaches 8.38:1.

Should I use black or white text on #c68bf2?

Black. It scores 8.38:1 against #c68bf2, versus 2.51:1 for white — AAA at any size.

What is the complementary color of #c68bf2?

#B7F28B sits directly opposite on the wheel. Softer options are the split-complements #EAF28B and #8BF293, which give the same contrast with far less vibration.

What colors go well with #c68bf2?

For interface work: #F8F4FA as the surface, #D9C0ED for borders, #794B9B for secondary text, #85BC10 as an accent and #470D73 for hover and pressed states. For a palette, the analogous pair #938BF2 and #F28BEA stays calm, while #B7F28B is the loudest partner.

What is #c68bf2 in CMYK for printing?

cmyk(18%, 43%, 0%, 5%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #c68bf2 warm or cool?

Cool — it scores 64 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #EC8BF2; nudged cooler, #A08AF3.

Work with #c68bf2 in the Color Lab