#CD98F0#CD98F0

#CD98F0 is a light, vivid violet. Relative luminance 0.417; OKLCH L 76.2% C 0.134 H 311.1°. Best body text is #000000 at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#CD98F0
RGBrgb(205, 152, 240)
HSLhsl(276, 75%, 77%)
HSVhsv(276, 37%, 94%)
CMYKcmyk(14.6%, 36.7%, 0%, 5.9%)
CIE-LABlab(70.68, 35.65, -36.65)
CIE-LCHlch(70.68, 51.13, 314.20°)
OKLaboklab(76.15% 0.0882 -0.1011)
OKLCHoklch(76.15% 0.134 311.1)
XYZxyz(52.1305, 41.7277, 87.7292)
Luminance0.4173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD98F0 #BBF098
analogous
#A198F0 #CD98F0 #F098E7
triadic
#CD98F0 #F0CD98 #98F0CD
tetradic
#CD98F0 #F0A198 #BBF098 #98E7F0
square
#CD98F0 #F0A198 #BBF098 #98E7F0
split-complementary
#CD98F0 #E7F098 #98F0A1
monochromatic
#992DE0 #B363E8 #CD98F0 #E7CDF8 #F2E4FB

Accessibility & contrast

On white

2.25
#CD98F0 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.35
#CD98F0 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD98F0
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD98F0#FFFFFF#000000##000000
##CD98F01.002.259.359.35
#FFFFFF2.251.0021.0021.00
#0000009.3521.001.001.00
##0000009.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#88AAF3
Deuteranopia (green-blind)
#94AEED
Tritanopia (blue-blind)
#C9A4B9
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #cd98f0;
/* rgb */ color: rgb(205, 152, 240);
/* oklch */ color: oklch(76.2% 0.134 311.1);
Tailwind
colors: {
  custom: {
    50: '#ddb7f5',
    500: '#cd98f0',
    950: '#000000',
  },
}
SCSS
$custom: #cd98f0;
$custom-light: #ddb7f5;
$custom-dark: #000000;
JSON
{
  "hex": "#cd98f0",
  "rgb": {
    "r": 205,
    "g": 152,
    "b": 240
  },
  "hsl": {
    "h": 276.136,
    "s": 74.576,
    "l": 76.863
  },
  "oklch": {
    "l": 0.76153,
    "c": 0.13418,
    "h": 311.1
  },
  "luminance": 0.41727
}

Semantic roles & 50–950 ramp

primary
#CD98F0
secondary
#E3F3D8
accent
#D70F5E
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #CD98F0

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

Preview Lab → · Contrast checker → · Palette generator →

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