#CB7DF2#CB7DF2

#CB7DF2 is a light, vivid purple. Relative luminance 0.338; OKLCH L 71.7% C 0.180 H 313.4°. Best body text is #000000 at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#CB7DF2
RGBrgb(203, 125, 242)
HSLhsl(280, 82%, 72%)
HSVhsv(280, 48%, 95%)
CMYKcmyk(16.1%, 48.3%, 0%, 5.1%)
CIE-LABlab(64.78, 49.93, -47.00)
CIE-LCHlch(64.78, 68.57, 316.73°)
OKLaboklab(71.71% 0.1239 -0.1308)
OKLCHoklch(71.71% 0.18 313.4)
XYZxyz(47.9866, 33.7757, 87.9787)
Luminance0.3377 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB7DF2 #A4F27D
analogous
#917DF2 #CB7DF2 #F27DDF
triadic
#CB7DF2 #F2CB7D #7DF2CB
tetradic
#CB7DF2 #F2917D #A4F27D #7DDFF2
square
#CB7DF2 #F2917D #A4F27D #7DDFF2
split-complementary
#CB7DF2 #DFF27D #7DF291
monochromatic
#9C16DE #B545EC #CB7DF2 #E1B5F8 #F4E3FC

Accessibility & contrast

On white

2.71
#CB7DF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.75
#CB7DF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB7DF2
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB7DF2#FFFFFF#000000##000000
##CB7DF21.002.717.757.75
#FFFFFF2.711.0021.0021.00
#0000007.7521.001.001.00
##0000007.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6399F6
Deuteranopia (green-blind)
#7A9FEF
Tritanopia (blue-blind)
#C88FAC
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cb7df2;
/* rgb */ color: rgb(203, 125, 242);
/* oklch */ color: oklch(71.7% 0.180 313.4);
Tailwind
colors: {
  custom: {
    50: '#dda5f7',
    500: '#cb7df2',
    950: '#000000',
  },
}
SCSS
$custom: #cb7df2;
$custom-light: #dda5f7;
$custom-dark: #000000;
JSON
{
  "hex": "#cb7df2",
  "rgb": {
    "r": 203,
    "g": 125,
    "b": 242
  },
  "hsl": {
    "h": 280,
    "s": 81.818,
    "l": 71.961
  },
  "oklch": {
    "l": 0.71709,
    "c": 0.18016,
    "h": 313.4
  },
  "luminance": 0.33775
}

Semantic roles & 50–950 ramp

primary
#CB7DF2
secondary
#E1F4D7
accent
#DE074F
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #CB7DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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