#CB8EF2#CB8EF2

#CB8EF2 is a light, vivid violet. Relative luminance 0.385; OKLCH L 74.4% C 0.152 H 311.2°. Best body text is #000000 at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#CB8EF2
RGBrgb(203, 142, 242)
HSLhsl(277, 79%, 75%)
HSVhsv(277, 41%, 95%)
CMYKcmyk(16.1%, 41.3%, 0%, 5.1%)
CIE-LABlab(68.35, 40.91, -41.39)
CIE-LCHlch(68.35, 58.20, 314.66°)
OKLaboklab(74.38% 0.1004 -0.1147)
OKLCHoklch(74.38% 0.152 311.2)
XYZxyz(50.3258, 38.4542, 88.7584)
Luminance0.3845 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB8EF2 #B5F28E
analogous
#998EF2 #CB8EF2 #F28EE7
triadic
#CB8EF2 #F2CB8E #8EF2CB
tetradic
#CB8EF2 #F2998E #B5F28E #8EE7F2
square
#CB8EF2 #F2998E #B5F28E #8EE7F2
split-complementary
#CB8EF2 #E7F28E #8EF299
monochromatic
#9820E5 #B257EC #CB8EF2 #E4C5F8 #F2E4FC

Accessibility & contrast

On white

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

On black

8.69
#CB8EF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB8EF2
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB8EF2#FFFFFF#000000##000000
##CB8EF21.002.428.698.69
#FFFFFF2.421.0021.0021.00
#0000008.6921.001.001.00
##0000008.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7AA4F6
Deuteranopia (green-blind)
#89A8EF
Tritanopia (blue-blind)
#C79DB5
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #cb8ef2;
/* rgb */ color: rgb(203, 142, 242);
/* oklch */ color: oklch(74.4% 0.152 311.2);
Tailwind
colors: {
  custom: {
    50: '#dcb0f6',
    500: '#cb8ef2',
    950: '#000000',
  },
}
SCSS
$custom: #cb8ef2;
$custom-light: #dcb0f6;
$custom-dark: #000000;
JSON
{
  "hex": "#cb8ef2",
  "rgb": {
    "r": 203,
    "g": 142,
    "b": 242
  },
  "hsl": {
    "h": 276.6,
    "s": 79.365,
    "l": 75.294
  },
  "oklch": {
    "l": 0.74377,
    "c": 0.15246,
    "h": 311.2
  },
  "luminance": 0.38453
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CB8EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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