#C331E2#C331E2

#C331E2 is a mid, highly saturated purple. Relative luminance 0.193; OKLCH L 61.2% C 0.261 H 319.7°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#C331E2
RGBrgb(195, 49, 226)
HSLhsl(289, 75%, 54%)
HSVhsv(289, 78%, 89%)
CMYKcmyk(13.7%, 78.3%, 0%, 11.4%)
CIE-LABlab(51.03, 77.26, -60.04)
CIE-LCHlch(51.03, 97.84, 322.15°)
OKLaboklab(61.23% 0.1988 -0.1686)
OKLCHoklch(61.23% 0.261 319.7)
XYZxyz(37.3297, 19.2916, 73.6941)
Luminance0.1929 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C331E2 #50E231
analogous
#6B31E2 #C331E2 #E231A8
triadic
#C331E2 #E2C331 #31E2C3
tetradic
#C331E2 #E26B31 #50E231 #31A8E2
square
#C331E2 #E26B31 #50E231 #31A8E2
split-complementary
#C331E2 #A8E231 #31E26B
monochromatic
#721386 #9F1ABB #C331E2 #D367EA #E29CF1

Accessibility & contrast

On white

4.32
#C331E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#C331E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C331E2
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C331E2#FFFFFF#000000##000000
##C331E21.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0070E7
Deuteranopia (green-blind)
#417EDE
Tritanopia (blue-blind)
#C3588A
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #c331e2;
/* rgb */ color: rgb(195, 49, 226);
/* oklch */ color: oklch(61.2% 0.261 319.7);
Tailwind
colors: {
  custom: {
    50: '#da7aec',
    500: '#c331e2',
    950: '#000000',
  },
}
SCSS
$custom: #c331e2;
$custom-light: #da7aec;
$custom-dark: #000000;
JSON
{
  "hex": "#c331e2",
  "rgb": {
    "r": 195,
    "g": 49,
    "b": 226
  },
  "hsl": {
    "h": 289.492,
    "s": 75.319,
    "l": 53.922
  },
  "oklch": {
    "l": 0.61227,
    "c": 0.26067,
    "h": 319.7
  },
  "luminance": 0.1929
}

Semantic roles & 50–950 ramp

primary
#C331E2
secondary
#9FDD92
accent
#F23657
background
#FDF8FE
surface
#FBEFFD
border
#D4CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #C331E2

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

Preview Lab → · Contrast checker → · Palette generator →

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