#CD97F2#CD97F2

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

Color values

HEX#CD97F2
RGBrgb(205, 151, 242)
HSLhsl(276, 78%, 77%)
HSVhsv(276, 38%, 95%)
CMYKcmyk(15.3%, 37.6%, 0%, 5.1%)
CIE-LABlab(70.54, 36.62, -37.96)
CIE-LCHlch(70.54, 52.74, 313.96°)
OKLaboklab(76.07% 0.0901 -0.1049)
OKLCHoklch(76.07% 0.138 310.7)
XYZxyz(52.2676, 41.5239, 89.2486)
Luminance0.4152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD97F2 #BCF297
analogous
#A097F2 #CD97F2 #F297EA
triadic
#CD97F2 #F2CD97 #97F2CD
tetradic
#CD97F2 #F2A097 #BCF297 #97EAF2
square
#CD97F2 #F2A097 #BCF297 #97EAF2
split-complementary
#CD97F2 #EAF297 #97F2A0
monochromatic
#992AE4 #B361EB #CD97F2 #E7CDF9 #F2E4FC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CD97F2#FFFFFF#000000##000000
##CD97F21.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)
#86AAF5
Deuteranopia (green-blind)
#92AEEF
Tritanopia (blue-blind)
#C9A4B9
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #cd97f2;
/* rgb */ color: rgb(205, 151, 242);
/* oklch */ color: oklch(76.1% 0.138 310.7);
Tailwind
colors: {
  custom: {
    50: '#ddb6f6',
    500: '#cd97f2',
    950: '#000000',
  },
}
SCSS
$custom: #cd97f2;
$custom-light: #ddb6f6;
$custom-dark: #000000;
JSON
{
  "hex": "#cd97f2",
  "rgb": {
    "r": 205,
    "g": 151,
    "b": 242
  },
  "hsl": {
    "h": 275.604,
    "s": 77.778,
    "l": 77.059
  },
  "oklch": {
    "l": 0.76073,
    "c": 0.13823,
    "h": 310.7
  },
  "luminance": 0.41523
}

Semantic roles & 50–950 ramp

primary
#CD97F2
secondary
#E3F3D8
accent
#DA0B5F
background
#FDFBFF
surface
#FBF6FE
border
#D4D0D6
text
#151117
muted
#838085

Preview Lab

Preview with #CD97F2

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

Preview Lab → · Contrast checker → · Palette generator →

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