#CF87F9#CF87F9

#CF87F9 is a light, vivid violet. Relative luminance 0.374; OKLCH L 74.0% C 0.173 H 311.9°. Best body text is #000000 at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#CF87F9
RGBrgb(207, 135, 249)
HSLhsl(278, 90%, 75%)
HSVhsv(278, 46%, 98%)
CMYKcmyk(16.9%, 45.8%, 0%, 2.4%)
CIE-LABlab(67.60, 47.25, -46.38)
CIE-LCHlch(67.60, 66.21, 315.54°)
OKLaboklab(74.01% 0.1159 -0.129)
OKLCHoklch(74.01% 0.173 311.9)
XYZxyz(51.4920, 37.4339, 94.1171)
Luminance0.3743 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF87F9 #B1F987
analogous
#9687F9 #CF87F9 #F987EA
triadic
#CF87F9 #F9CF87 #87F9CF
tetradic
#CF87F9 #F99687 #B1F987 #87EAF9
square
#CF87F9 #F99687 #B1F987 #87EAF9
split-complementary
#CF87F9 #EAF987 #87F996
monochromatic
#A012F3 #B84DF6 #CF87F9 #E6C1FC #F3E2FE

Accessibility & contrast

On white

2.47
#CF87F9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.49
#CF87F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF87F9
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF87F9#FFFFFF#000000##000000
##CF87F91.002.478.498.49
#FFFFFF2.471.0021.0021.00
#0000008.4921.001.001.00
##0000008.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6EA1FD
Deuteranopia (green-blind)
#82A6F6
Tritanopia (blue-blind)
#CB99B4
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #cf87f9;
/* rgb */ color: rgb(207, 135, 249);
/* oklch */ color: oklch(74.0% 0.173 311.9);
Tailwind
colors: {
  custom: {
    50: '#e0abfb',
    500: '#cf87f9',
    950: '#000000',
  },
}
SCSS
$custom: #cf87f9;
$custom-light: #e0abfb;
$custom-dark: #000000;
JSON
{
  "hex": "#cf87f9",
  "rgb": {
    "r": 207,
    "g": 135,
    "b": 249
  },
  "hsl": {
    "h": 277.895,
    "s": 90.476,
    "l": 75.294
  },
  "oklch": {
    "l": 0.74011,
    "c": 0.17341,
    "h": 311.9
  },
  "luminance": 0.37433
}

Semantic roles & 50–950 ramp

primary
#CF87F9
secondary
#E1F6D5
accent
#E60055
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #CF87F9

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

Preview Lab → · Contrast checker → · Palette generator →

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