#CB98DC#CB98DC

#CB98DC is a light, moderate purple. Relative luminance 0.403; OKLCH L 75.1% C 0.110 H 317.5°. Best body text is #000000 at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#CB98DC
RGBrgb(203, 152, 220)
HSLhsl(285, 49%, 73%)
HSVhsv(285, 31%, 86%)
CMYKcmyk(7.7%, 30.9%, 0%, 13.7%)
CIE-LABlab(69.70, 30.91, -27.22)
CIE-LCHlch(69.70, 41.19, 318.64°)
OKLaboklab(75.1% 0.0811 -0.0743)
OKLCHoklch(75.1% 0.11 317.5)
XYZxyz(48.7733, 40.3214, 72.9098)
Luminance0.4032 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB98DC #A9DC98
analogous
#A998DC #CB98DC #DC98CB
triadic
#CB98DC #DCCB98 #98DCCB
tetradic
#CB98DC #DCA998 #A9DC98 #98CBDC
square
#CB98DC #DCA998 #A9DC98 #98CBDC
split-complementary
#CB98DC #CBDC98 #98DCA9
monochromatic
#9C3FBA #B46ACC #CB98DC #E2C6EC #F3E8F7

Accessibility & contrast

On white

2.32
#CB98DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.06
#CB98DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB98DC
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB98DC#FFFFFF#000000##000000
##CB98DC1.002.329.069.06
#FFFFFF2.321.0021.0021.00
#0000009.0621.001.001.00
##0000009.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8FA7DF
Deuteranopia (green-blind)
#9BACDA
Tritanopia (blue-blind)
#CBA0B1
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #cb98dc;
/* rgb */ color: rgb(203, 152, 220);
/* oklch */ color: oklch(75.1% 0.110 317.5);
Tailwind
colors: {
  custom: {
    50: '#dbb7e7',
    500: '#cb98dc',
    950: '#000000',
  },
}
SCSS
$custom: #cb98dc;
$custom-light: #dbb7e7;
$custom-dark: #000000;
JSON
{
  "hex": "#cb98dc",
  "rgb": {
    "r": 203,
    "g": 152,
    "b": 220
  },
  "hsl": {
    "h": 285,
    "s": 49.275,
    "l": 72.941
  },
  "oklch": {
    "l": 0.751,
    "c": 0.10997,
    "h": 317.5
  },
  "luminance": 0.4032
}

Semantic roles & 50–950 ramp

primary
#CB98DC
secondary
#E1EEDD
accent
#BD294E
background
#FDFBFE
surface
#FBF6FC
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #CB98DC

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

Preview Lab → · Contrast checker → · Palette generator →

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