#CB8DF2#CB8DF2

#CB8DF2 is a light, vivid violet. Relative luminance 0.382; OKLCH L 74.2% C 0.154 H 311.4°. Best body text is #000000 at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#CB8DF2
RGBrgb(203, 141, 242)
HSLhsl(277, 80%, 75%)
HSVhsv(277, 42%, 95%)
CMYKcmyk(16.1%, 41.7%, 0%, 5.1%)
CIE-LABlab(68.14, 41.45, -41.73)
CIE-LCHlch(68.14, 58.82, 314.80°)
OKLaboklab(74.21% 0.1018 -0.1157)
OKLCHoklch(74.21% 0.154 311.4)
XYZxyz(50.1777, 38.1579, 88.7091)
Luminance0.3816 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB8DF2 #B4F28D
analogous
#998DF2 #CB8DF2 #F28DE6
triadic
#CB8DF2 #F2CB8D #8DF2CB
tetradic
#CB8DF2 #F2998D #B4F28D #8DE6F2
square
#CB8DF2 #F2998D #B4F28D #8DE6F2
split-complementary
#CB8DF2 #E6F28D #8DF299
monochromatic
#991FE5 #B256EC #CB8DF2 #E4C4F8 #F2E4FC

Accessibility & contrast

On white

2.43
#CB8DF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.63
#CB8DF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB8DF2
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB8DF2#FFFFFF#000000##000000
##CB8DF21.002.438.638.63
#FFFFFF2.431.0021.0021.00
#0000008.6321.001.001.00
##0000008.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#78A3F6
Deuteranopia (green-blind)
#88A7EF
Tritanopia (blue-blind)
#C79CB4
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #cb8df2;
/* rgb */ color: rgb(203, 141, 242);
/* oklch */ color: oklch(74.2% 0.154 311.4);
Tailwind
colors: {
  custom: {
    50: '#dcaff6',
    500: '#cb8df2',
    950: '#000000',
  },
}
SCSS
$custom: #cb8df2;
$custom-light: #dcaff6;
$custom-dark: #000000;
JSON
{
  "hex": "#cb8df2",
  "rgb": {
    "r": 203,
    "g": 141,
    "b": 242
  },
  "hsl": {
    "h": 276.832,
    "s": 79.528,
    "l": 75.098
  },
  "oklch": {
    "l": 0.74214,
    "c": 0.15412,
    "h": 311.4
  },
  "luminance": 0.38157
}

Semantic roles & 50–950 ramp

primary
#CB8DF2
secondary
#E2F4D7
accent
#DC0A5B
background
#FDFAFF
surface
#FBF5FE
border
#D4CFD6
text
#151017
muted
#837F85

Preview Lab

Preview with #CB8DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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