#CB7DFC#CB7DFC

#CB7DFC is a light, vivid violet. Relative luminance 0.344; OKLCH L 72.2% C 0.191 H 310.8°. Best body text is #000000 at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#CB7DFC
RGBrgb(203, 125, 252)
HSLhsl(277, 95%, 74%)
HSVhsv(277, 50%, 99%)
CMYKcmyk(19.4%, 50.4%, 0%, 1.2%)
CIE-LABlab(65.27, 52.04, -51.72)
CIE-LCHlch(65.27, 73.37, 315.18°)
OKLaboklab(72.23% 0.1249 -0.1446)
OKLCHoklch(72.23% 0.191 310.8)
XYZxyz(49.5297, 34.3930, 96.1059)
Luminance0.3439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB7DFC #AEFC7D
analogous
#8C7DFC #CB7DFC #FC7DEE
triadic
#CB7DFC #FCCB7D #7DFCCB
tetradic
#CB7DFC #FC8C7D #AEFC7D #7DEEFC
square
#CB7DFC #FC8C7D #AEFC7D #7DEEFC
split-complementary
#CB7DFC #EEFC7D #7DFC8C
monochromatic
#9B06F9 #B341FB #CB7DFC #E3B9FD #F3E1FE

Accessibility & contrast

On white

2.67
#CB7DFC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.88
#CB7DFC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB7DFC
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB7DFC#FFFFFF#000000##000000
##CB7DFC1.002.677.887.88
#FFFFFF2.671.0021.0021.00
#0000007.8821.001.001.00
##0000007.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C9BFF
Deuteranopia (green-blind)
#74A0F9
Tritanopia (blue-blind)
#C592B1
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #cb7dfc;
/* rgb */ color: rgb(203, 125, 252);
/* oklch */ color: oklch(72.2% 0.191 310.8);
Tailwind
colors: {
  custom: {
    50: '#dda5fe',
    500: '#cb7dfc',
    950: '#000000',
  },
}
SCSS
$custom: #cb7dfc;
$custom-light: #dda5fe;
$custom-dark: #000000;
JSON
{
  "hex": "#cb7dfc",
  "rgb": {
    "r": 203,
    "g": 125,
    "b": 252
  },
  "hsl": {
    "h": 276.85,
    "s": 95.489,
    "l": 73.922
  },
  "oklch": {
    "l": 0.72231,
    "c": 0.19107,
    "h": 310.8
  },
  "luminance": 0.34392
}

Semantic roles & 50–950 ramp

primary
#CB7DFC
secondary
#E2F7D4
accent
#E60059
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F18
muted
#837F86

Preview Lab

Preview with #CB7DFC

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

Preview Lab → · Contrast checker → · Palette generator →

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