#CB7DFB#CB7DFB

#CB7DFB is a light, vivid violet. Relative luminance 0.343; OKLCH L 72.2% C 0.190 H 311.1°. Best body text is #000000 at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#CB7DFB
RGBrgb(203, 125, 251)
HSLhsl(277, 94%, 74%)
HSVhsv(277, 50%, 98%)
CMYKcmyk(19.1%, 50.2%, 0%, 1.6%)
CIE-LABlab(65.22, 51.83, -51.25)
CIE-LCHlch(65.22, 72.89, 315.32°)
OKLaboklab(72.18% 0.1248 -0.1432)
OKLCHoklch(72.18% 0.19 311.1)
XYZxyz(49.3717, 34.3297, 95.2735)
Luminance0.3433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB7DFB #ADFB7D
analogous
#8C7DFB #CB7DFB #FB7DEC
triadic
#CB7DFB #FBCB7D #7DFBCB
tetradic
#CB7DFB #FB8C7D #ADFB7D #7DECFB
square
#CB7DFB #FB8C7D #ADFB7D #7DECFB
split-complementary
#CB7DFB #ECFB7D #7DFB8C
monochromatic
#9B08F6 #B342F9 #CB7DFB #E3B8FD #F3E1FE

Accessibility & contrast

On white

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

On black

7.87
#CB7DFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB7DFB
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB7DFB#FFFFFF#000000##000000
##CB7DFB1.002.677.877.87
#FFFFFF2.671.0021.0021.00
#0000007.8721.001.001.00
##0000007.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D9AFF
Deuteranopia (green-blind)
#74A0F8
Tritanopia (blue-blind)
#C692B1
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #cb7dfb;
/* rgb */ color: rgb(203, 125, 251);
/* oklch */ color: oklch(72.2% 0.190 311.1);
Tailwind
colors: {
  custom: {
    50: '#dda5fd',
    500: '#cb7dfb',
    950: '#000000',
  },
}
SCSS
$custom: #cb7dfb;
$custom-light: #dda5fd;
$custom-dark: #000000;
JSON
{
  "hex": "#cb7dfb",
  "rgb": {
    "r": 203,
    "g": 125,
    "b": 251
  },
  "hsl": {
    "h": 277.143,
    "s": 94.03,
    "l": 73.725
  },
  "oklch": {
    "l": 0.72178,
    "c": 0.18997,
    "h": 311.1
  },
  "luminance": 0.34329
}

Semantic roles & 50–950 ramp

primary
#CB7DFB
secondary
#E2F6D5
accent
#E60057
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F18
muted
#837F86

Preview Lab

Preview with #CB7DFB

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

Preview Lab → · Contrast checker → · Palette generator →

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