#CD97FA#CD97FA

#CD97FA is a light, vivid violet. Relative luminance 0.420; OKLCH L 76.4% C 0.148 H 308.3°. Best body text is #000000 at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#CD97FA
RGBrgb(205, 151, 250)
HSLhsl(273, 91%, 79%)
HSVhsv(273, 40%, 98%)
CMYKcmyk(18%, 39.6%, 0%, 2%)
CIE-LABlab(70.88, 38.33, -41.79)
CIE-LCHlch(70.88, 56.71, 312.53°)
OKLaboklab(76.44% 0.0917 -0.1159)
OKLCHoklch(76.44% 0.148 308.3)
XYZxyz(53.4955, 42.0151, 95.7155)
Luminance0.4201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD97FA #C4FA97
analogous
#9B97FA #CD97FA #FA97F6
triadic
#CD97FA #FACD97 #97FACD
tetradic
#CD97FA #FA9B97 #C4FA97 #97F6FA
square
#CD97FA #FA9B97 #C4FA97 #97F6FA
split-complementary
#CD97FA #F6FA97 #97FA9B
monochromatic
#9522F4 #B15DF7 #CD97FA #E9D1FD #F1E2FE

Accessibility & contrast

On white

2.23
#CD97FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.40
#CD97FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD97FA
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD97FA#FFFFFF#000000##000000
##CD97FA1.002.239.409.40
#FFFFFF2.231.0021.0021.00
#0000009.4021.001.001.00
##0000009.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#82ABFE
Deuteranopia (green-blind)
#8FAEF7
Tritanopia (blue-blind)
#C7A6BD
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #cd97fa;
/* rgb */ color: rgb(205, 151, 250);
/* oklch */ color: oklch(76.4% 0.148 308.3);
Tailwind
colors: {
  custom: {
    50: '#deb6fc',
    500: '#cd97fa',
    950: '#000000',
  },
}
SCSS
$custom: #cd97fa;
$custom-light: #deb6fc;
$custom-dark: #000000;
JSON
{
  "hex": "#cd97fa",
  "rgb": {
    "r": 205,
    "g": 151,
    "b": 250
  },
  "hsl": {
    "h": 272.727,
    "s": 90.826,
    "l": 78.627
  },
  "oklch": {
    "l": 0.76441,
    "c": 0.14775,
    "h": 308.3
  },
  "luminance": 0.42014
}

Semantic roles & 50–950 ramp

primary
#CD97FA
secondary
#E4F6D5
accent
#E60068
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CD97FA

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

Preview Lab → · Contrast checker → · Palette generator →

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