#CB8FF2#CB8FF2

#CB8FF2 is a light, vivid violet. Relative luminance 0.388; OKLCH L 74.5% C 0.151 H 311.0°. Best body text is #000000 at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#CB8FF2
RGBrgb(203, 143, 242)
HSLhsl(276, 79%, 75%)
HSVhsv(276, 41%, 95%)
CMYKcmyk(16.1%, 40.9%, 0%, 5.1%)
CIE-LABlab(68.57, 40.37, -41.05)
CIE-LCHlch(68.57, 57.57, 314.52°)
OKLaboklab(74.54% 0.099 -0.1137)
OKLCHoklch(74.54% 0.151 311)
XYZxyz(50.4752, 38.7531, 88.8083)
Luminance0.3875 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB8FF2 #B6F28F
analogous
#998FF2 #CB8FF2 #F28FE7
triadic
#CB8FF2 #F2CB8F #8FF2CB
tetradic
#CB8FF2 #F2998F #B6F28F #8FE7F2
square
#CB8FF2 #F2998F #B6F28F #8FE7F2
split-complementary
#CB8FF2 #E7F28F #8FF299
monochromatic
#9821E5 #B258EC #CB8FF2 #E4C6F8 #F2E4FC

Accessibility & contrast

On white

2.40
#CB8FF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.75
#CB8FF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB8FF2
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB8FF2#FFFFFF#000000##000000
##CB8FF21.002.408.758.75
#FFFFFF2.401.0021.0021.00
#0000008.7521.001.001.00
##0000008.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7BA4F6
Deuteranopia (green-blind)
#8AA8EF
Tritanopia (blue-blind)
#C79EB5
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #cb8ff2;
/* rgb */ color: rgb(203, 143, 242);
/* oklch */ color: oklch(74.5% 0.151 311.0);
Tailwind
colors: {
  custom: {
    50: '#dcb1f6',
    500: '#cb8ff2',
    950: '#000000',
  },
}
SCSS
$custom: #cb8ff2;
$custom-light: #dcb1f6;
$custom-dark: #000000;
JSON
{
  "hex": "#cb8ff2",
  "rgb": {
    "r": 203,
    "g": 143,
    "b": 242
  },
  "hsl": {
    "h": 276.364,
    "s": 79.2,
    "l": 75.49
  },
  "oklch": {
    "l": 0.74541,
    "c": 0.15081,
    "h": 311
  },
  "luminance": 0.38752
}

Semantic roles & 50–950 ramp

primary
#CB8FF2
secondary
#E3F4D7
accent
#DB0A5D
background
#FDFAFF
surface
#FBF5FE
border
#D4CFD6
text
#151117
muted
#838085

Preview Lab

Preview with #CB8FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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