#CB31E2#CB31E2

#CB31E2 is a light, highly saturated purple. Relative luminance 0.204; OKLCH L 62.3% C 0.264 H 322.0°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#CB31E2
RGBrgb(203, 49, 226)
HSLhsl(292, 75%, 54%)
HSVhsv(292, 78%, 89%)
CMYKcmyk(10.2%, 78.3%, 0%, 11.4%)
CIE-LABlab(52.27, 78.71, -57.97)
CIE-LCHlch(52.27, 97.75, 323.63°)
OKLaboklab(62.35% 0.2077 -0.1624)
OKLCHoklch(62.35% 0.264 322)
XYZxyz(39.4529, 20.3864, 73.7937)
Luminance0.2038 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB31E2 #48E231
analogous
#7331E2 #CB31E2 #E231A1
triadic
#CB31E2 #E2CB31 #31E2CB
tetradic
#CB31E2 #E27331 #48E231 #31A1E2
square
#CB31E2 #E27331 #48E231 #31A1E2
split-complementary
#CB31E2 #A1E231 #31E273
monochromatic
#771386 #A61ABB #CB31E2 #D967EA #E69CF1

Accessibility & contrast

On white

4.14
#CB31E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#CB31E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB31E2
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB31E2#FFFFFF#000000##000000
##CB31E21.004.145.085.08
#FFFFFF4.141.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072E7
Deuteranopia (green-blind)
#4C82DE
Tritanopia (blue-blind)
#CD568A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #cb31e2;
/* rgb */ color: rgb(203, 49, 226);
/* oklch */ color: oklch(62.3% 0.264 322.0);
Tailwind
colors: {
  custom: {
    50: '#df7bec',
    500: '#cb31e2',
    950: '#000000',
  },
}
SCSS
$custom: #cb31e2;
$custom-light: #df7bec;
$custom-dark: #000000;
JSON
{
  "hex": "#cb31e2",
  "rgb": {
    "r": 203,
    "g": 49,
    "b": 226
  },
  "hsl": {
    "h": 292.203,
    "s": 75.319,
    "l": 53.922
  },
  "oklch": {
    "l": 0.62348,
    "c": 0.26361,
    "h": 322
  },
  "luminance": 0.20384
}

Semantic roles & 50–950 ramp

primary
#CB31E2
secondary
#9BDD92
accent
#F2364E
background
#FEF8FE
surface
#FCEFFD
border
#D5CAD5
text
#160B16
muted
#847C84

Preview Lab

Preview with #CB31E2

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

Preview Lab → · Contrast checker → · Palette generator →

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