#CB7DEF#CB7DEF

#CB7DEF is a light, vivid purple. Relative luminance 0.336; OKLCH L 71.6% C 0.177 H 314.3°. Best body text is #000000 at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#CB7DEF
RGBrgb(203, 125, 239)
HSLhsl(281, 78%, 71%)
HSVhsv(281, 48%, 94%)
CMYKcmyk(15.1%, 47.7%, 0%, 6.3%)
CIE-LABlab(64.64, 49.30, -45.57)
CIE-LCHlch(64.64, 67.14, 317.25°)
OKLaboklab(71.56% 0.1235 -0.1267)
OKLCHoklch(71.56% 0.177 314.3)
XYZxyz(47.5397, 33.5970, 85.6252)
Luminance0.3360 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB7DEF #A1EF7D
analogous
#927DEF #CB7DEF #EF7DDA
triadic
#CB7DEF #EFCB7D #7DEFCB
tetradic
#CB7DEF #EF927D #A1EF7D #7DDAEF
square
#CB7DEF #EF927D #A1EF7D #7DDAEF
split-complementary
#CB7DEF #DAEF7D #7DEF92
monochromatic
#9C1AD7 #B547E8 #CB7DEF #E1B3F6 #F4E4FC

Accessibility & contrast

On white

2.72
#CB7DEF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.72
#CB7DEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB7DEF
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB7DEF#FFFFFF#000000##000000
##CB7DEF1.002.727.727.72
#FFFFFF2.721.0021.0021.00
#0000007.7221.001.001.00
##0000007.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6598F3
Deuteranopia (green-blind)
#7B9FEC
Tritanopia (blue-blind)
#C88EAB
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cb7def;
/* rgb */ color: rgb(203, 125, 239);
/* oklch */ color: oklch(71.6% 0.177 314.3);
Tailwind
colors: {
  custom: {
    50: '#dda5f4',
    500: '#cb7def',
    950: '#000000',
  },
}
SCSS
$custom: #cb7def;
$custom-light: #dda5f4;
$custom-dark: #000000;
JSON
{
  "hex": "#cb7def",
  "rgb": {
    "r": 203,
    "g": 125,
    "b": 239
  },
  "hsl": {
    "h": 281.053,
    "s": 78.082,
    "l": 71.373
  },
  "oklch": {
    "l": 0.71556,
    "c": 0.17691,
    "h": 314.3
  },
  "luminance": 0.33596
}

Semantic roles & 50–950 ramp

primary
#CB7DEF
secondary
#DEF3D5
accent
#DA0B4D
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F17
muted
#837F85

Preview Lab

Preview with #CB7DEF

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

Preview Lab → · Contrast checker → · Palette generator →

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