#CD98F2#CD98F2

#CD98F2 is a light, vivid violet. Relative luminance 0.418; OKLCH L 76.2% C 0.137 H 310.5°. Best body text is #000000 at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#CD98F2
RGBrgb(205, 152, 242)
HSLhsl(275, 78%, 77%)
HSVhsv(275, 37%, 95%)
CMYKcmyk(15.3%, 37.2%, 0%, 5.1%)
CIE-LABlab(70.77, 36.07, -37.62)
CIE-LCHlch(70.77, 52.12, 313.80°)
OKLaboklab(76.24% 0.0886 -0.1039)
OKLCHoklch(76.24% 0.137 310.5)
XYZxyz(52.4292, 41.8471, 89.3025)
Luminance0.4185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD98F2 #BDF298
analogous
#A098F2 #CD98F2 #F298EA
triadic
#CD98F2 #F2CD98 #98F2CD
tetradic
#CD98F2 #F2A098 #BDF298 #98EAF2
square
#CD98F2 #F2A098 #BDF298 #98EAF2
split-complementary
#CD98F2 #EAF298 #98F2A0
monochromatic
#982BE4 #B362EB #CD98F2 #E7CEF9 #F2E4FC

Accessibility & contrast

On white

2.24
#CD98F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.37
#CD98F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD98F2
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD98F2#FFFFFF#000000##000000
##CD98F21.002.249.379.37
#FFFFFF2.241.0021.0021.00
#0000009.3721.001.001.00
##0000009.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#87ABF5
Deuteranopia (green-blind)
#93AEEF
Tritanopia (blue-blind)
#C9A5BA
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #cd98f2;
/* rgb */ color: rgb(205, 152, 242);
/* oklch */ color: oklch(76.2% 0.137 310.5);
Tailwind
colors: {
  custom: {
    50: '#ddb7f6',
    500: '#cd98f2',
    950: '#000000',
  },
}
SCSS
$custom: #cd98f2;
$custom-light: #ddb7f6;
$custom-dark: #000000;
JSON
{
  "hex": "#cd98f2",
  "rgb": {
    "r": 205,
    "g": 152,
    "b": 242
  },
  "hsl": {
    "h": 275.333,
    "s": 77.586,
    "l": 77.255
  },
  "oklch": {
    "l": 0.76243,
    "c": 0.13655,
    "h": 310.5
  },
  "luminance": 0.41846
}

Semantic roles & 50–950 ramp

primary
#CD98F2
secondary
#E3F3D8
accent
#DA0C60
background
#FDFBFF
surface
#FBF6FE
border
#D4D0D6
text
#151117
muted
#838085

Preview Lab

Preview with #CD98F2

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

Preview Lab → · Contrast checker → · Palette generator →

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