#CB7FE2#CB7FE2

#CB7FE2 is a light, vivid purple. Relative luminance 0.334; OKLCH L 71.2% C 0.160 H 318.0°. Best body text is #000000 at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#CB7FE2
RGBrgb(203, 127, 226)
HSLhsl(286, 63%, 69%)
HSVhsv(286, 44%, 89%)
CMYKcmyk(10.2%, 43.8%, 0%, 11.4%)
CIE-LABlab(64.46, 45.60, -38.66)
CIE-LCHlch(64.46, 59.78, 319.71°)
OKLaboklab(71.23% 0.1187 -0.1067)
OKLCHoklch(71.23% 0.16 318)
XYZxyz(45.9435, 33.3677, 75.9572)
Luminance0.3337 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB7FE2 #96E27F
analogous
#9A7FE2 #CB7FE2 #E27FC7
triadic
#CB7FE2 #E2CB7F #7FE2CB
tetradic
#CB7FE2 #E29A7F #96E27F #7FC7E2
square
#CB7FE2 #E29A7F #96E27F #7FC7E2
split-complementary
#CB7FE2 #C7E27F #7FE29A
monochromatic
#9A2BBC #B74DD7 #CB7FE2 #DFB1ED #F4E3F9

Accessibility & contrast

On white

2.74
#CB7FE2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.67
#CB7FE2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB7FE2
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB7FE2#FFFFFF#000000##000000
##CB7FE21.002.747.677.67
#FFFFFF2.741.0021.0021.00
#0000007.6721.001.001.00
##0000007.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F97E6
Deuteranopia (green-blind)
#839FDF
Tritanopia (blue-blind)
#CB8CA6
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #cb7fe2;
/* rgb */ color: rgb(203, 127, 226);
/* oklch */ color: oklch(71.2% 0.160 318.0);
Tailwind
colors: {
  custom: {
    50: '#dca6eb',
    500: '#cb7fe2',
    950: '#000000',
  },
}
SCSS
$custom: #cb7fe2;
$custom-light: #dca6eb;
$custom-dark: #000000;
JSON
{
  "hex": "#cb7fe2",
  "rgb": {
    "r": 203,
    "g": 127,
    "b": 226
  },
  "hsl": {
    "h": 286.061,
    "s": 63.057,
    "l": 69.216
  },
  "oklch": {
    "l": 0.71225,
    "c": 0.15967,
    "h": 318
  },
  "luminance": 0.33366
}

Semantic roles & 50–950 ramp

primary
#CB7FE2
secondary
#D7EDD0
accent
#CB1B44
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F16
muted
#837F84

Preview Lab

Preview with #CB7FE2

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

Preview Lab → · Contrast checker → · Palette generator →

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