#C04FF2#C04FF2

#C04FF2 is a light, highly saturated purple. Relative luminance 0.232; OKLCH L 64.5% C 0.242 H 313.5°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#C04FF2
RGBrgb(192, 79, 242)
HSLhsl(282, 86%, 63%)
HSVhsv(282, 67%, 95%)
CMYKcmyk(20.7%, 67.4%, 0%, 5.1%)
CIE-LABlab(55.29, 69.15, -62.20)
CIE-LCHlch(55.29, 93.01, 318.03°)
OKLaboklab(64.49% 0.1666 -0.1753)
OKLCHoklch(64.49% 0.242 313.5)
XYZxyz(40.5585, 23.2105, 86.3307)
Luminance0.2321 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C04FF2 #81F24F
analogous
#6E4FF2 #C04FF2 #F24FD2
triadic
#C04FF2 #F2C04F #4FF2C0
tetradic
#C04FF2 #F26E4F #81F24F #4FD2F2
square
#C04FF2 #F26E4F #81F24F #4FD2F2
split-complementary
#C04FF2 #D2F24F #4FF26E
monochromatic
#840EB9 #AC16EE #C04FF2 #D488F6 #E9C1FA

Accessibility & contrast

On white

3.72
#C04FF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.64
#C04FF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C04FF2
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C04FF2#FFFFFF#000000##000000
##C04FF21.003.725.645.64
#FFFFFF3.721.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF7
Deuteranopia (green-blind)
#4487EE
Tritanopia (blue-blind)
#BB709B
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #c04ff2;
/* rgb */ color: rgb(192, 79, 242);
/* oklch */ color: oklch(64.5% 0.242 313.5);
Tailwind
colors: {
  custom: {
    50: '#d788f7',
    500: '#c04ff2',
    950: '#000000',
  },
}
SCSS
$custom: #c04ff2;
$custom-light: #d788f7;
$custom-dark: #000000;
JSON
{
  "hex": "#c04ff2",
  "rgb": {
    "r": 192,
    "g": 79,
    "b": 242
  },
  "hsl": {
    "h": 281.595,
    "s": 86.243,
    "l": 62.941
  },
  "oklch": {
    "l": 0.64487,
    "c": 0.24179,
    "h": 313.5
  },
  "luminance": 0.23209
}

Semantic roles & 50–950 ramp

primary
#C04FF2
secondary
#C3ECB1
accent
#E30347
background
#FDF8FF
surface
#FBF0FF
border
#D4CBD7
text
#150C17
muted
#837D85

Preview Lab

Preview with #C04FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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