#CB8CF2#CB8CF2

#CB8CF2 is a light, vivid violet. Relative luminance 0.379; OKLCH L 74.1% C 0.156 H 311.5°. Best body text is #000000 at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#CB8CF2
RGBrgb(203, 140, 242)
HSLhsl(277, 80%, 75%)
HSVhsv(277, 42%, 95%)
CMYKcmyk(16.1%, 42.1%, 0%, 5.1%)
CIE-LABlab(67.92, 41.98, -42.07)
CIE-LCHlch(67.92, 59.44, 314.94°)
OKLaboklab(74.05% 0.1032 -0.1167)
OKLCHoklch(74.05% 0.156 311.5)
XYZxyz(50.0309, 37.8644, 88.6601)
Luminance0.3786 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB8CF2 #B3F28C
analogous
#988CF2 #CB8CF2 #F28CE6
triadic
#CB8CF2 #F2CB8C #8CF2CB
tetradic
#CB8CF2 #F2988C #B3F28C #8CE6F2
square
#CB8CF2 #F2988C #B3F28C #8CE6F2
split-complementary
#CB8CF2 #E6F28C #8CF298
monochromatic
#991EE6 #B255EC #CB8CF2 #E4C3F8 #F3E4FC

Accessibility & contrast

On white

2.45
#CB8CF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.57
#CB8CF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB8CF2
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB8CF2#FFFFFF#000000##000000
##CB8CF21.002.458.578.57
#FFFFFF2.451.0021.0021.00
#0000008.5721.001.001.00
##0000008.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#77A2F6
Deuteranopia (green-blind)
#87A7EF
Tritanopia (blue-blind)
#C79BB4
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #cb8cf2;
/* rgb */ color: rgb(203, 140, 242);
/* oklch */ color: oklch(74.1% 0.156 311.5);
Tailwind
colors: {
  custom: {
    50: '#dcaff6',
    500: '#cb8cf2',
    950: '#000000',
  },
}
SCSS
$custom: #cb8cf2;
$custom-light: #dcaff6;
$custom-dark: #000000;
JSON
{
  "hex": "#cb8cf2",
  "rgb": {
    "r": 203,
    "g": 140,
    "b": 242
  },
  "hsl": {
    "h": 277.059,
    "s": 79.687,
    "l": 74.902
  },
  "oklch": {
    "l": 0.74051,
    "c": 0.15578,
    "h": 311.5
  },
  "luminance": 0.37863
}

Semantic roles & 50–950 ramp

primary
#CB8CF2
secondary
#E2F4D7
accent
#DC0A5A
background
#FDFAFF
surface
#FBF4FE
border
#D4CED6
text
#151017
muted
#837F85

Preview Lab

Preview with #CB8CF2

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

Preview Lab → · Contrast checker → · Palette generator →

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