#CB9FF2#CB9FF2

#CB9FF2 is a light, vivid violet. Relative luminance 0.439; OKLCH L 77.3% C 0.124 H 308.0°. Best body text is #000000 at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#CB9FF2
RGBrgb(203, 159, 242)
HSLhsl(272, 76%, 79%)
HSVhsv(272, 34%, 95%)
CMYKcmyk(16.1%, 34.3%, 0%, 5.1%)
CIE-LABlab(72.16, 31.66, -35.46)
CIE-LCHlch(72.16, 47.53, 311.76°)
OKLaboklab(77.26% 0.0764 -0.0978)
OKLCHoklch(77.26% 0.124 308)
XYZxyz(53.0507, 43.9041, 89.6668)
Luminance0.4390 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB9FF2 #C6F29F
analogous
#A19FF2 #CB9FF2 #F29FF0
triadic
#CB9FF2 #F2CB9F #9FF2CB
tetradic
#CB9FF2 #F2A19F #C6F29F #9FF0F2
square
#CB9FF2 #F2A19F #C6F29F #9FF0F2
split-complementary
#CB9FF2 #F0F29F #9FF2A1
monochromatic
#9133E3 #AE69EB #CB9FF2 #E8D5F9 #F0E4FB

Accessibility & contrast

On white

2.15
#CB9FF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.78
#CB9FF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB9FF2
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB9FF2#FFFFFF#000000##000000
##CB9FF21.002.159.789.78
#FFFFFF2.151.0021.0021.00
#0000009.7821.001.001.00
##0000009.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8FAFF5
Deuteranopia (green-blind)
#98B2F0
Tritanopia (blue-blind)
#C6ABBE
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #cb9ff2;
/* rgb */ color: rgb(203, 159, 242);
/* oklch */ color: oklch(77.3% 0.124 308.0);
Tailwind
colors: {
  custom: {
    50: '#dcbcf6',
    500: '#cb9ff2',
    950: '#000000',
  },
}
SCSS
$custom: #cb9ff2;
$custom-light: #dcbcf6;
$custom-dark: #000000;
JSON
{
  "hex": "#cb9ff2",
  "rgb": {
    "r": 203,
    "g": 159,
    "b": 242
  },
  "hsl": {
    "h": 271.807,
    "s": 76.147,
    "l": 78.627
  },
  "oklch": {
    "l": 0.7726,
    "c": 0.12407,
    "h": 308
  },
  "luminance": 0.43904
}

Semantic roles & 50–950 ramp

primary
#CB9FF2
secondary
#E5F3D8
accent
#D80D6D
background
#FDFBFF
surface
#FBF6FE
border
#D4D0D6
text
#151217
muted
#838185

Preview Lab

Preview with #CB9FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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