#CB98ED#CB98ED

#CB98ED is a light, vivid violet. Relative luminance 0.413; OKLCH L 75.8% C 0.130 H 311.0°. Best body text is #000000 at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#CB98ED
RGBrgb(203, 152, 237)
HSLhsl(276, 70%, 76%)
HSVhsv(276, 36%, 93%)
CMYKcmyk(14.3%, 35.9%, 0%, 7.1%)
CIE-LABlab(70.36, 34.42, -35.52)
CIE-LCHlch(70.36, 49.46, 314.09°)
OKLaboklab(75.83% 0.0853 -0.0979)
OKLCHoklch(75.83% 0.13 311)
XYZxyz(51.1402, 41.2681, 85.3758)
Luminance0.4127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB98ED #BAED98
analogous
#A198ED #CB98ED #ED98E5
triadic
#CB98ED #EDCB98 #98EDCB
tetradic
#CB98ED #EDA198 #BAED98 #98E5ED
square
#CB98ED #EDA198 #BAED98 #98E5ED
split-complementary
#CB98ED #E5ED98 #98EDA1
monochromatic
#9630DB #B164E4 #CB98ED #E5CCF6 #F2E5FA

Accessibility & contrast

On white

2.27
#CB98ED on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.25
#CB98ED on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB98ED
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB98ED#FFFFFF#000000##000000
##CB98ED1.002.279.259.25
#FFFFFF2.271.0021.0021.00
#0000009.2521.001.001.00
##0000009.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#88A9F0
Deuteranopia (green-blind)
#94ADEB
Tritanopia (blue-blind)
#C7A4B8
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #cb98ed;
/* rgb */ color: rgb(203, 152, 237);
/* oklch */ color: oklch(75.8% 0.130 311.0);
Tailwind
colors: {
  custom: {
    50: '#dcb7f3',
    500: '#cb98ed',
    950: '#000000',
  },
}
SCSS
$custom: #cb98ed;
$custom-light: #dcb7f3;
$custom-dark: #000000;
JSON
{
  "hex": "#cb98ed",
  "rgb": {
    "r": 203,
    "g": 152,
    "b": 237
  },
  "hsl": {
    "h": 276,
    "s": 70.248,
    "l": 76.275
  },
  "oklch": {
    "l": 0.75825,
    "c": 0.12982,
    "h": 311
  },
  "luminance": 0.41267
}

Semantic roles & 50–950 ramp

primary
#CB98ED
secondary
#E3F2D9
accent
#D21360
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #CB98ED

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

Preview Lab → · Contrast checker → · Palette generator →

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