#CD98F7#CD98F7

#CD98F7 is a light, vivid violet. Relative luminance 0.422; OKLCH L 76.5% C 0.143 H 309.0°. Best body text is #000000 at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#CD98F7
RGBrgb(205, 152, 247)
HSLhsl(273, 86%, 78%)
HSVhsv(273, 38%, 97%)
CMYKcmyk(17%, 38.5%, 0%, 3.1%)
CIE-LABlab(70.98, 37.14, -40.01)
CIE-LCHlch(70.98, 54.60, 312.87°)
OKLaboklab(76.47% 0.0897 -0.1108)
OKLCHoklch(76.47% 0.143 309)
XYZxyz(53.1905, 42.1516, 93.3116)
Luminance0.4215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD98F7 #C2F798
analogous
#9D98F7 #CD98F7 #F798F1
triadic
#CD98F7 #F7CD98 #98F7CD
tetradic
#CD98F7 #F79D98 #C2F798 #98F1F7
square
#CD98F7 #F79D98 #C2F798 #98F1F7
split-complementary
#CD98F7 #F1F798 #98F79D
monochromatic
#9626EE #B15FF3 #CD98F7 #E9D1FB #F1E3FD

Accessibility & contrast

On white

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

On black

9.43
#CD98F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD98F7
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD98F7#FFFFFF#000000##000000
##CD98F71.002.239.439.43
#FFFFFF2.231.0021.0021.00
#0000009.4321.001.001.00
##0000009.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#85ABFB
Deuteranopia (green-blind)
#91AFF4
Tritanopia (blue-blind)
#C8A6BC
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #cd98f7;
/* rgb */ color: rgb(205, 152, 247);
/* oklch */ color: oklch(76.5% 0.143 309.0);
Tailwind
colors: {
  custom: {
    50: '#ddb7fa',
    500: '#cd98f7',
    950: '#000000',
  },
}
SCSS
$custom: #cd98f7;
$custom-light: #ddb7fa;
$custom-dark: #000000;
JSON
{
  "hex": "#cd98f7",
  "rgb": {
    "r": 205,
    "g": 152,
    "b": 247
  },
  "hsl": {
    "h": 273.474,
    "s": 85.586,
    "l": 78.235
  },
  "oklch": {
    "l": 0.7647,
    "c": 0.14251,
    "h": 309
  },
  "luminance": 0.42151
}

Semantic roles & 50–950 ramp

primary
#CD98F7
secondary
#E4F5D6
accent
#E20366
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CD98F7

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

Preview Lab → · Contrast checker → · Palette generator →

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