#CB7FEC#CB7FEC

#CB7FEC is a light, vivid purple. Relative luminance 0.339; OKLCH L 71.7% C 0.170 H 314.9°. Best body text is #000000 at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#CB7FEC
RGBrgb(203, 127, 236)
HSLhsl(282, 74%, 71%)
HSVhsv(282, 46%, 93%)
CMYKcmyk(14%, 46.2%, 0%, 7.5%)
CIE-LABlab(64.91, 47.64, -43.49)
CIE-LCHlch(64.91, 64.50, 317.61°)
OKLaboklab(71.71% 0.1203 -0.1207)
OKLCHoklch(71.71% 0.17 314.9)
XYZxyz(47.3559, 33.9326, 83.3957)
Luminance0.3393 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB7FEC #A0EC7F
analogous
#947FEC #CB7FEC #EC7FD6
triadic
#CB7FEC #ECCB7F #7FECCB
tetradic
#CB7FEC #EC947F #A0EC7F #7FD6EC
square
#CB7FEC #EC947F #A0EC7F #7FD6EC
split-complementary
#CB7FEC #D6EC7F #7FEC94
monochromatic
#9B1FD2 #B54AE4 #CB7FEC #E1B4F4 #F4E4FB

Accessibility & contrast

On white

2.70
#CB7FEC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.79
#CB7FEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB7FEC
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB7FEC#FFFFFF#000000##000000
##CB7FEC1.002.707.797.79
#FFFFFF2.701.0021.0021.00
#0000007.7921.001.001.00
##0000007.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6999F0
Deuteranopia (green-blind)
#7FA0E9
Tritanopia (blue-blind)
#C98FAA
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cb7fec;
/* rgb */ color: rgb(203, 127, 236);
/* oklch */ color: oklch(71.7% 0.170 314.9);
Tailwind
colors: {
  custom: {
    50: '#dda6f2',
    500: '#cb7fec',
    950: '#000000',
  },
}
SCSS
$custom: #cb7fec;
$custom-light: #dda6f2;
$custom-dark: #000000;
JSON
{
  "hex": "#cb7fec",
  "rgb": {
    "r": 203,
    "g": 127,
    "b": 236
  },
  "hsl": {
    "h": 281.835,
    "s": 74.15,
    "l": 71.176
  },
  "oklch": {
    "l": 0.7171,
    "c": 0.17042,
    "h": 314.9
  },
  "luminance": 0.33931
}

Semantic roles & 50–950 ramp

primary
#CB7FEC
secondary
#DEF2D5
accent
#D60F4B
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F17
muted
#837F85

Preview Lab

Preview with #CB7FEC

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

Preview Lab → · Contrast checker → · Palette generator →

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