#CF97ED#CF97ED

#CF97ED is a light, vivid violet. Relative luminance 0.415; OKLCH L 76.0% C 0.133 H 313.3°. Best body text is #000000 at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#CF97ED
RGBrgb(207, 151, 237)
HSLhsl(279, 70%, 76%)
HSVhsv(279, 36%, 93%)
CMYKcmyk(12.7%, 36.3%, 0%, 7.1%)
CIE-LABlab(70.53, 36.16, -35.23)
CIE-LCHlch(70.53, 50.48, 315.75°)
OKLaboklab(76.05% 0.0913 -0.097)
OKLCHoklch(76.05% 0.133 313.3)
XYZxyz(52.0823, 41.5140, 85.3737)
Luminance0.4151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF97ED #B5ED97
analogous
#A497ED #CF97ED #ED97E0
triadic
#CF97ED #EDCF97 #97EDCF
tetradic
#CF97ED #EDA497 #B5ED97 #97E0ED
square
#CF97ED #EDA497 #B5ED97 #97E0ED
split-complementary
#CF97ED #E0ED97 #97EDA4
monochromatic
#9F2FDB #B763E4 #CF97ED #E7CBF6 #F3E5FA

Accessibility & contrast

On white

2.26
#CF97ED on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.30
#CF97ED on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF97ED
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF97ED#FFFFFF#000000##000000
##CF97ED1.002.269.309.30
#FFFFFF2.261.0021.0021.00
#0000009.3021.001.001.00
##0000009.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#88A9F0
Deuteranopia (green-blind)
#95AEEA
Tritanopia (blue-blind)
#CDA3B7
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #cf97ed;
/* rgb */ color: rgb(207, 151, 237);
/* oklch */ color: oklch(76.0% 0.133 313.3);
Tailwind
colors: {
  custom: {
    50: '#dfb6f3',
    500: '#cf97ed',
    950: '#000000',
  },
}
SCSS
$custom: #cf97ed;
$custom-light: #dfb6f3;
$custom-dark: #000000;
JSON
{
  "hex": "#cf97ed",
  "rgb": {
    "r": 207,
    "g": 151,
    "b": 237
  },
  "hsl": {
    "h": 279.07,
    "s": 70.492,
    "l": 76.078
  },
  "oklch": {
    "l": 0.76046,
    "c": 0.13319,
    "h": 313.3
  },
  "luminance": 0.41513
}

Semantic roles & 50–950 ramp

primary
#CF97ED
secondary
#E2F2D9
accent
#D31356
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #CF97ED

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

Preview Lab → · Contrast checker → · Palette generator →

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