#CB8EFA#CB8EFA

#CB8EFA is a light, vivid violet. Relative luminance 0.389; OKLCH L 74.8% C 0.162 H 309.0°. Best body text is #000000 at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#CB8EFA
RGBrgb(203, 142, 250)
HSLhsl(274, 92%, 77%)
HSVhsv(274, 43%, 98%)
CMYKcmyk(18.8%, 43.2%, 0%, 2%)
CIE-LABlab(68.71, 42.63, -45.21)
CIE-LCHlch(68.71, 62.14, 313.32°)
OKLaboklab(74.76% 0.1018 -0.1257)
OKLCHoklch(74.76% 0.162 309)
XYZxyz(51.5537, 38.9453, 95.2253)
Luminance0.3895 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB8EFA #BDFA8E
analogous
#958EFA #CB8EFA #FA8EF3
triadic
#CB8EFA #FACB8E #8EFACB
tetradic
#CB8EFA #FA958E #BDFA8E #8EF3FA
square
#CB8EFA #FA958E #BDFA8E #8EF3FA
split-complementary
#CB8EFA #F3FA8E #8EFA95
monochromatic
#9519F5 #B053F7 #CB8EFA #E6C9FD #F2E2FE

Accessibility & contrast

On white

2.39
#CB8EFA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.79
#CB8EFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB8EFA
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB8EFA#FFFFFF#000000##000000
##CB8EFA1.002.398.798.79
#FFFFFF2.391.0021.0021.00
#0000008.7921.001.001.00
##0000008.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#76A5FE
Deuteranopia (green-blind)
#85A9F7
Tritanopia (blue-blind)
#C59FB8
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #cb8efa;
/* rgb */ color: rgb(203, 142, 250);
/* oklch */ color: oklch(74.8% 0.162 309.0);
Tailwind
colors: {
  custom: {
    50: '#dcb0fc',
    500: '#cb8efa',
    950: '#000000',
  },
}
SCSS
$custom: #cb8efa;
$custom-light: #dcb0fc;
$custom-dark: #000000;
JSON
{
  "hex": "#cb8efa",
  "rgb": {
    "r": 203,
    "g": 142,
    "b": 250
  },
  "hsl": {
    "h": 273.889,
    "s": 91.525,
    "l": 76.863
  },
  "oklch": {
    "l": 0.74763,
    "c": 0.16178,
    "h": 309
  },
  "luminance": 0.38945
}

Semantic roles & 50–950 ramp

primary
#CB8EFA
secondary
#E3F6D5
accent
#E60064
background
#FDFAFF
surface
#FBF5FF
border
#D4CFD7
text
#151017
muted
#837F85

Preview Lab

Preview with #CB8EFA

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

Preview Lab → · Contrast checker → · Palette generator →

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