#CB4FEC#CB4FEC

#CB4FEC is a light, highly saturated purple. Relative luminance 0.243; OKLCH L 65.5% C 0.240 H 318.4°. Best body text is #000000 at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#CB4FEC
RGBrgb(203, 79, 236)
HSLhsl(287, 81%, 62%)
HSVhsv(287, 67%, 93%)
CMYKcmyk(14%, 66.5%, 0%, 7.5%)
CIE-LABlab(56.43, 70.32, -56.93)
CIE-LCHlch(56.43, 90.47, 321.01°)
OKLaboklab(65.5% 0.18 -0.1595)
OKLCHoklch(65.5% 0.24 318.4)
XYZxyz(42.5628, 24.3465, 81.7980)
Luminance0.2434 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB4FEC #70EC4F
analogous
#7D4FEC #CB4FEC #EC4FBE
triadic
#CB4FEC #ECCB4F #4FECCB
tetradic
#CB4FEC #EC7D4F #70EC4F #4FBEEC
square
#CB4FEC #EC7D4F #70EC4F #4FBEEC
split-complementary
#CB4FEC #BEEC4F #4FEC7D
monochromatic
#8D13AE #BA19E5 #CB4FEC #DB86F2 #ECBDF8

Accessibility & contrast

On white

3.58
#CB4FEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.87
#CB4FEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB4FEC
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB4FEC#FFFFFF#000000##000000
##CB4FEC1.003.585.875.87
#FFFFFF3.581.0021.0021.00
#0000005.8721.001.001.00
##0000005.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#057FF1
Deuteranopia (green-blind)
#578BE8
Tritanopia (blue-blind)
#CA6C98
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #cb4fec;
/* rgb */ color: rgb(203, 79, 236);
/* oklch */ color: oklch(65.5% 0.240 318.4);
Tailwind
colors: {
  custom: {
    50: '#df89f3',
    500: '#cb4fec',
    950: '#000000',
  },
}
SCSS
$custom: #cb4fec;
$custom-light: #df89f3;
$custom-dark: #000000;
JSON
{
  "hex": "#cb4fec",
  "rgb": {
    "r": 203,
    "g": 79,
    "b": 236
  },
  "hsl": {
    "h": 287.389,
    "s": 80.513,
    "l": 61.765
  },
  "oklch": {
    "l": 0.65503,
    "c": 0.24047,
    "h": 318.4
  },
  "luminance": 0.24345
}

Semantic roles & 50–950 ramp

primary
#CB4FEC
secondary
#BBE8AE
accent
#DD0935
background
#FEF8FE
surface
#FCF0FD
border
#D5CBD5
text
#160C17
muted
#847D85

Preview Lab

Preview with #CB4FEC

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

Preview Lab → · Contrast checker → · Palette generator →

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