#CF31E2#CF31E2

#CF31E2 is a light, highly saturated purple. Relative luminance 0.210; OKLCH L 62.9% C 0.265 H 323.1°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#CF31E2
RGBrgb(207, 49, 226)
HSLhsl(294, 75%, 54%)
HSVhsv(294, 78%, 89%)
CMYKcmyk(8.4%, 78.3%, 0%, 11.4%)
CIE-LABlab(52.90, 79.44, -56.92)
CIE-LCHlch(52.90, 97.73, 324.38°)
OKLaboklab(62.92% 0.212 -0.1592)
OKLCHoklch(62.92% 0.265 323.1)
XYZxyz(40.5566, 20.9555, 73.8454)
Luminance0.2095 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF31E2 #44E231
analogous
#7731E2 #CF31E2 #E2319D
triadic
#CF31E2 #E2CF31 #31E2CF
tetradic
#CF31E2 #E27731 #44E231 #319DE2
square
#CF31E2 #E27731 #44E231 #319DE2
split-complementary
#CF31E2 #9DE231 #31E277
monochromatic
#791386 #AA1ABB #CF31E2 #DC67EA #E89CF1

Accessibility & contrast

On white

4.05
#CF31E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#CF31E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF31E2
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF31E2#FFFFFF#000000##000000
##CF31E21.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073E7
Deuteranopia (green-blind)
#5184DE
Tritanopia (blue-blind)
#D2558A
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #cf31e2;
/* rgb */ color: rgb(207, 49, 226);
/* oklch */ color: oklch(62.9% 0.265 323.1);
Tailwind
colors: {
  custom: {
    50: '#e27cec',
    500: '#cf31e2',
    950: '#000000',
  },
}
SCSS
$custom: #cf31e2;
$custom-light: #e27cec;
$custom-dark: #000000;
JSON
{
  "hex": "#cf31e2",
  "rgb": {
    "r": 207,
    "g": 49,
    "b": 226
  },
  "hsl": {
    "h": 293.559,
    "s": 75.319,
    "l": 53.922
  },
  "oklch": {
    "l": 0.62915,
    "c": 0.26514,
    "h": 323.1
  },
  "luminance": 0.20953
}

Semantic roles & 50–950 ramp

primary
#CF31E2
secondary
#9ADD92
accent
#F2364A
background
#FEF8FE
surface
#FDEFFD
border
#D5CAD5
text
#160B16
muted
#847C84

Preview Lab

Preview with #CF31E2

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

Preview Lab → · Contrast checker → · Palette generator →

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