#CF31CF#CF31CF

#CF31CF is a mid, highly saturated purple. Relative luminance 0.200; OKLCH L 61.8% C 0.251 H 328.1°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#CF31CF
RGBrgb(207, 49, 207)
HSLhsl(300, 62%, 50%)
HSVhsv(300, 76%, 81%)
CMYKcmyk(0%, 76.3%, 0%, 18.8%)
CIE-LABlab(51.80, 76.39, -47.85)
CIE-LCHlch(51.80, 90.14, 327.93°)
OKLaboklab(61.78% 0.2132 -0.1327)
OKLCHoklch(61.78% 0.251 328.1)
XYZxyz(38.0925, 19.9699, 60.8677)
Luminance0.1997 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF31CF #31CF31
analogous
#8031CF #CF31CF #CF3180
triadic
#CF31CF #CFCF31 #31CFCF
tetradic
#CF31CF #CF8031 #31CF31 #3180CF
square
#CF31CF #CF8031 #31CF31 #3180CF
split-complementary
#CF31CF #80CF31 #31CF80
monochromatic
#6C196C #9E259E #CF31CF #DB63DB #E694E6

Accessibility & contrast

On white

4.21
#CF31CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#CF31CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF31CF
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF31CF#FFFFFF#000000##000000
##CF31CF1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#006FD3
Deuteranopia (green-blind)
#5F82CB
Tritanopia (blue-blind)
#D64C7F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cf31cf;
/* rgb */ color: rgb(207, 49, 207);
/* oklch */ color: oklch(61.8% 0.251 328.1);
Tailwind
colors: {
  custom: {
    50: '#e27bde',
    500: '#cf31cf',
    950: '#000000',
  },
}
SCSS
$custom: #cf31cf;
$custom-light: #e27bde;
$custom-dark: #000000;
JSON
{
  "hex": "#cf31cf",
  "rgb": {
    "r": 207,
    "g": 49,
    "b": 207
  },
  "hsl": {
    "h": 300,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.61784,
    "c": 0.25115,
    "h": 328.1
  },
  "luminance": 0.19967
}

Semantic roles & 50–950 ramp

primary
#CF31CF
secondary
#8BD18B
accent
#E54343
background
#FEF8FD
surface
#FDEFFB
border
#D5CAD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CF31CF

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

Preview Lab → · Contrast checker → · Palette generator →

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