#CF98ED#CF98ED

#CF98ED is a light, vivid violet. Relative luminance 0.418; OKLCH L 76.2% C 0.131 H 313.1°. Best body text is #000000 at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#CF98ED
RGBrgb(207, 152, 237)
HSLhsl(279, 70%, 76%)
HSVhsv(279, 36%, 93%)
CMYKcmyk(12.7%, 35.9%, 0%, 7.1%)
CIE-LABlab(70.76, 35.62, -34.88)
CIE-LCHlch(70.76, 49.85, 315.60°)
OKLaboklab(76.22% 0.0898 -0.096)
OKLCHoklch(76.22% 0.131 313.1)
XYZxyz(52.2439, 41.8372, 85.4276)
Luminance0.4184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF98ED #B6ED98
analogous
#A598ED #CF98ED #ED98E0
triadic
#CF98ED #EDCF98 #98EDCF
tetradic
#CF98ED #EDA598 #B6ED98 #98E0ED
square
#CF98ED #EDA598 #B6ED98 #98E0ED
split-complementary
#CF98ED #E0ED98 #98EDA5
monochromatic
#9E30DB #B764E4 #CF98ED #E7CCF6 #F3E5FA

Accessibility & contrast

On white

2.24
#CF98ED on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.37
#CF98ED on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF98ED
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF98ED#FFFFFF#000000##000000
##CF98ED1.002.249.379.37
#FFFFFF2.241.0021.0021.00
#0000009.3721.001.001.00
##0000009.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#89AAF0
Deuteranopia (green-blind)
#96AFEA
Tritanopia (blue-blind)
#CDA3B8
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #cf98ed;
/* rgb */ color: rgb(207, 152, 237);
/* oklch */ color: oklch(76.2% 0.131 313.1);
Tailwind
colors: {
  custom: {
    50: '#dfb7f3',
    500: '#cf98ed',
    950: '#000000',
  },
}
SCSS
$custom: #cf98ed;
$custom-light: #dfb7f3;
$custom-dark: #000000;
JSON
{
  "hex": "#cf98ed",
  "rgb": {
    "r": 207,
    "g": 152,
    "b": 237
  },
  "hsl": {
    "h": 278.824,
    "s": 70.248,
    "l": 76.275
  },
  "oklch": {
    "l": 0.76216,
    "c": 0.13148,
    "h": 313.1
  },
  "luminance": 0.41836
}

Semantic roles & 50–950 ramp

primary
#CF98ED
secondary
#E2F2D9
accent
#D21357
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #CF98ED

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

Preview Lab → · Contrast checker → · Palette generator →

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