#CB71E7#CB71E7

#CB71E7 is a light, vivid purple. Relative luminance 0.303; OKLCH L 69.4% C 0.188 H 317.7°. Best body text is #000000 at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#CB71E7
RGBrgb(203, 113, 231)
HSLhsl(286, 71%, 67%)
HSVhsv(286, 51%, 91%)
CMYKcmyk(12.1%, 51.1%, 0%, 9.4%)
CIE-LABlab(61.89, 53.82, -45.46)
CIE-LCHlch(61.89, 70.45, 319.81°)
OKLaboklab(69.4% 0.1387 -0.1263)
OKLCHoklch(69.4% 0.188 317.7)
XYZxyz(44.9555, 30.2779, 79.0619)
Luminance0.3028 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB71E7 #8DE771
analogous
#9071E7 #CB71E7 #E771C8
triadic
#CB71E7 #E7CB71 #71E7CB
tetradic
#CB71E7 #E79071 #8DE771 #71C8E7
square
#CB71E7 #E79071 #8DE771 #71C8E7
split-complementary
#CB71E7 #C8E771 #71E790
monochromatic
#9820BE #B83DDE #CB71E7 #DEA5F0 #F1DAF9

Accessibility & contrast

On white

2.98
#CB71E7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.06
#CB71E7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB71E7
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB71E7#FFFFFF#000000##000000
##CB71E71.002.987.067.06
#FFFFFF2.981.0021.0021.00
#0000007.0621.001.001.00
##0000007.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5990EB
Deuteranopia (green-blind)
#7598E4
Tritanopia (blue-blind)
#CB82A2
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #cb71e7;
/* rgb */ color: rgb(203, 113, 231);
/* oklch */ color: oklch(69.4% 0.188 317.7);
Tailwind
colors: {
  custom: {
    50: '#dd9def',
    500: '#cb71e7',
    950: '#000000',
  },
}
SCSS
$custom: #cb71e7;
$custom-light: #dd9def;
$custom-dark: #000000;
JSON
{
  "hex": "#cb71e7",
  "rgb": {
    "r": 203,
    "g": 113,
    "b": 231
  },
  "hsl": {
    "h": 285.763,
    "s": 71.084,
    "l": 67.451
  },
  "oklch": {
    "l": 0.69395,
    "c": 0.18762,
    "h": 317.7
  },
  "luminance": 0.30276
}

Semantic roles & 50–950 ramp

primary
#CB71E7
secondary
#D0ECC7
accent
#D31240
background
#FDF9FE
surface
#FBF2FD
border
#D4CCD5
text
#150E16
muted
#837E84

Preview Lab

Preview with #CB71E7

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

Preview Lab → · Contrast checker → · Palette generator →

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