#CB8FEC#CB8FEC

#CB8FEC is a light, vivid violet. Relative luminance 0.384; OKLCH L 74.3% C 0.144 H 312.9°. Best body text is #000000 at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#CB8FEC
RGBrgb(203, 143, 236)
HSLhsl(279, 71%, 74%)
HSVhsv(279, 39%, 93%)
CMYKcmyk(14%, 39.4%, 0%, 7.5%)
CIE-LABlab(68.31, 39.10, -38.16)
CIE-LCHlch(68.31, 54.64, 315.69°)
OKLaboklab(74.26% 0.0979 -0.1054)
OKLCHoklch(74.26% 0.144 312.9)
XYZxyz(49.5889, 38.3985, 84.1400)
Luminance0.3840 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB8FEC #B0EC8F
analogous
#9D8FEC #CB8FEC #EC8FDE
triadic
#CB8FEC #ECCB8F #8FECCB
tetradic
#CB8FEC #EC9D8F #B0EC8F #8FDEEC
square
#CB8FEC #EC9D8F #B0EC8F #8FDEEC
split-complementary
#CB8FEC #DEEC8F #8FEC9D
monochromatic
#9A26DA #B35BE3 #CB8FEC #E3C3F5 #F3E5FB

Accessibility & contrast

On white

2.42
#CB8FEC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.68
#CB8FEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB8FEC
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB8FEC#FFFFFF#000000##000000
##CB8FEC1.002.428.688.68
#FFFFFF2.421.0021.0021.00
#0000008.6821.001.001.00
##0000008.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7EA3EF
Deuteranopia (green-blind)
#8DA8E9
Tritanopia (blue-blind)
#C89CB2
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #cb8fec;
/* rgb */ color: rgb(203, 143, 236);
/* oklch */ color: oklch(74.3% 0.144 312.9);
Tailwind
colors: {
  custom: {
    50: '#dcb1f2',
    500: '#cb8fec',
    950: '#000000',
  },
}
SCSS
$custom: #cb8fec;
$custom-light: #dcb1f2;
$custom-dark: #000000;
JSON
{
  "hex": "#cb8fec",
  "rgb": {
    "r": 203,
    "g": 143,
    "b": 236
  },
  "hsl": {
    "h": 278.71,
    "s": 70.992,
    "l": 74.314
  },
  "oklch": {
    "l": 0.74261,
    "c": 0.14386,
    "h": 312.9
  },
  "luminance": 0.38398
}

Semantic roles & 50–950 ramp

primary
#CB8FEC
secondary
#E2F2D9
accent
#D31257
background
#FDFAFE
surface
#FBF5FD
border
#D4CFD5
text
#151117
muted
#838085

Preview Lab

Preview with #CB8FEC

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

Preview Lab → · Contrast checker → · Palette generator →

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