#CB9EF2#CB9EF2

#CB9EF2 is a light, vivid violet. Relative luminance 0.436; OKLCH L 77.1% C 0.126 H 308.2°. Best body text is #000000 at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#CB9EF2
RGBrgb(203, 158, 242)
HSLhsl(272, 76%, 78%)
HSVhsv(272, 35%, 95%)
CMYKcmyk(16.1%, 34.7%, 0%, 5.1%)
CIE-LABlab(71.93, 32.20, -35.81)
CIE-LCHlch(71.93, 48.16, 311.96°)
OKLaboklab(77.09% 0.0778 -0.0988)
OKLCHoklch(77.09% 0.126 308.2)
XYZxyz(52.8795, 43.5615, 89.6097)
Luminance0.4356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB9EF2 #C5F29E
analogous
#A19EF2 #CB9EF2 #F29EEF
triadic
#CB9EF2 #F2CB9E #9EF2CB
tetradic
#CB9EF2 #F2A19E #C5F29E #9EEFF2
square
#CB9EF2 #F2A19E #C5F29E #9EEFF2
split-complementary
#CB9EF2 #EFF29E #9EF2A1
monochromatic
#9132E4 #AE68EB #CB9EF2 #E8D4F9 #F1E4FB

Accessibility & contrast

On white

2.16
#CB9EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.71
#CB9EF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB9EF2
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB9EF2#FFFFFF#000000##000000
##CB9EF21.002.169.719.71
#FFFFFF2.161.0021.0021.00
#0000009.7121.001.001.00
##0000009.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8EAEF5
Deuteranopia (green-blind)
#97B1F0
Tritanopia (blue-blind)
#C6AABD
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #cb9ef2;
/* rgb */ color: rgb(203, 158, 242);
/* oklch */ color: oklch(77.1% 0.126 308.2);
Tailwind
colors: {
  custom: {
    50: '#dcbbf6',
    500: '#cb9ef2',
    950: '#000000',
  },
}
SCSS
$custom: #cb9ef2;
$custom-light: #dcbbf6;
$custom-dark: #000000;
JSON
{
  "hex": "#cb9ef2",
  "rgb": {
    "r": 203,
    "g": 158,
    "b": 242
  },
  "hsl": {
    "h": 272.143,
    "s": 76.364,
    "l": 78.431
  },
  "oklch": {
    "l": 0.77085,
    "c": 0.12576,
    "h": 308.2
  },
  "luminance": 0.43561
}

Semantic roles & 50–950 ramp

primary
#CB9EF2
secondary
#E5F3D8
accent
#D90D6B
background
#FDFBFF
surface
#FBF6FE
border
#D4D0D6
text
#151217
muted
#838185

Preview Lab

Preview with #CB9EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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