#C04FE2#C04FE2

#C04FE2 is a light, highly saturated purple. Relative luminance 0.223; OKLCH L 63.5% C 0.227 H 317.5°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#C04FE2
RGBrgb(192, 79, 226)
HSLhsl(286, 72%, 60%)
HSVhsv(286, 65%, 89%)
CMYKcmyk(15%, 65%, 0%, 11.4%)
CIE-LABlab(54.33, 66.01, -54.75)
CIE-LCHlch(54.33, 85.77, 320.33°)
OKLaboklab(63.5% 0.1674 -0.1535)
OKLCHoklch(63.5% 0.227 317.5)
XYZxyz(38.2597, 22.2910, 74.2240)
Luminance0.2229 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C04FE2 #71E24F
analogous
#764FE2 #C04FE2 #E24FBB
triadic
#C04FE2 #E2C04F #4FE2C0
tetradic
#C04FE2 #E2764F #71E24F #4FBBE2
square
#C04FE2 #E2764F #71E24F #4FBBE2
split-complementary
#C04FE2 #BBE24F #4FE276
monochromatic
#7E1A9D #A922D1 #C04FE2 #D384EB #E6B8F3

Accessibility & contrast

On white

3.85
#C04FE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.46
#C04FE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C04FE2
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C04FE2#FFFFFF#000000##000000
##C04FE21.003.855.465.46
#FFFFFF3.851.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#147BE6
Deuteranopia (green-blind)
#5385DE
Tritanopia (blue-blind)
#BF6A92
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #c04fe2;
/* rgb */ color: rgb(192, 79, 226);
/* oklch */ color: oklch(63.5% 0.227 317.5);
Tailwind
colors: {
  custom: {
    50: '#d788ec',
    500: '#c04fe2',
    950: '#000000',
  },
}
SCSS
$custom: #c04fe2;
$custom-light: #d788ec;
$custom-dark: #000000;
JSON
{
  "hex": "#c04fe2",
  "rgb": {
    "r": 192,
    "g": 79,
    "b": 226
  },
  "hsl": {
    "h": 286.122,
    "s": 71.707,
    "l": 59.804
  },
  "oklch": {
    "l": 0.63496,
    "c": 0.22711,
    "h": 317.5
  },
  "luminance": 0.22289
}

Semantic roles & 50–950 ramp

primary
#C04FE2
secondary
#B7E3AA
accent
#EE3963
background
#FDF8FE
surface
#FBF0FD
border
#D4CBD5
text
#150C16
muted
#837D84

Preview Lab

Preview with #C04FE2

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#C04FE2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva