#CB7EFC#CB7EFC

#CB7EFC is a light, vivid violet. Relative luminance 0.346; OKLCH L 72.4% C 0.190 H 310.7°. Best body text is #000000 at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#CB7EFC
RGBrgb(203, 126, 252)
HSLhsl(277, 95%, 74%)
HSVhsv(277, 50%, 99%)
CMYKcmyk(19.4%, 50%, 0%, 1.2%)
CIE-LABlab(65.47, 51.52, -51.41)
CIE-LCHlch(65.47, 72.78, 315.07°)
OKLaboklab(72.38% 0.1236 -0.1436)
OKLCHoklch(72.38% 0.19 310.7)
XYZxyz(49.6569, 34.6474, 96.1483)
Luminance0.3465 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB7EFC #AFFC7E
analogous
#8C7EFC #CB7EFC #FC7EEE
triadic
#CB7EFC #FCCB7E #7EFCCB
tetradic
#CB7EFC #FC8C7E #AFFC7E #7EEEFC
square
#CB7EFC #FC8C7E #AFFC7E #7EEEFC
split-complementary
#CB7EFC #EEFC7E #7EFC8C
monochromatic
#9B06F9 #B342FB #CB7EFC #E3BAFD #F3E1FE

Accessibility & contrast

On white

2.65
#CB7EFC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.93
#CB7EFC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB7EFC
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB7EFC#FFFFFF#000000##000000
##CB7EFC1.002.657.937.93
#FFFFFF2.651.0021.0021.00
#0000007.9321.001.001.00
##0000007.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E9BFF
Deuteranopia (green-blind)
#75A0F9
Tritanopia (blue-blind)
#C593B2
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #cb7efc;
/* rgb */ color: rgb(203, 126, 252);
/* oklch */ color: oklch(72.4% 0.190 310.7);
Tailwind
colors: {
  custom: {
    50: '#dda5fe',
    500: '#cb7efc',
    950: '#000000',
  },
}
SCSS
$custom: #cb7efc;
$custom-light: #dda5fe;
$custom-dark: #000000;
JSON
{
  "hex": "#cb7efc",
  "rgb": {
    "r": 203,
    "g": 126,
    "b": 252
  },
  "hsl": {
    "h": 276.667,
    "s": 95.455,
    "l": 74.118
  },
  "oklch": {
    "l": 0.72379,
    "c": 0.18951,
    "h": 310.7
  },
  "luminance": 0.34646
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CB7EFC

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

Preview Lab → · Contrast checker → · Palette generator →

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