#CB7AF2#CB7AF2

#CB7AF2 is a light, vivid purple. Relative luminance 0.330; OKLCH L 71.3% C 0.185 H 313.8°. Best body text is #000000 at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#CB7AF2
RGBrgb(203, 122, 242)
HSLhsl(281, 82%, 71%)
HSVhsv(281, 50%, 95%)
CMYKcmyk(16.1%, 49.6%, 0%, 5.1%)
CIE-LABlab(64.18, 51.48, -47.95)
CIE-LCHlch(64.18, 70.35, 317.04°)
OKLaboklab(71.26% 0.1279 -0.1336)
OKLCHoklch(71.26% 0.185 313.8)
XYZxyz(47.6125, 33.0276, 87.8540)
Luminance0.3303 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB7AF2 #A1F27A
analogous
#8F7AF2 #CB7AF2 #F27ADD
triadic
#CB7AF2 #F2CB7A #7AF2CB
tetradic
#CB7AF2 #F28F7A #A1F27A #7ADDF2
square
#CB7AF2 #F28F7A #A1F27A #7ADDF2
split-complementary
#CB7AF2 #DDF27A #7AF28F
monochromatic
#9C16DC #B542ED #CB7AF2 #E1B2F7 #F4E3FC

Accessibility & contrast

On white

2.76
#CB7AF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.61
#CB7AF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB7AF2
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB7AF2#FFFFFF#000000##000000
##CB7AF21.002.767.617.61
#FFFFFF2.761.0021.0021.00
#0000007.6121.001.001.00
##0000007.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F97F6
Deuteranopia (green-blind)
#779EEF
Tritanopia (blue-blind)
#C88DAB
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #cb7af2;
/* rgb */ color: rgb(203, 122, 242);
/* oklch */ color: oklch(71.3% 0.185 313.8);
Tailwind
colors: {
  custom: {
    50: '#dda3f7',
    500: '#cb7af2',
    950: '#000000',
  },
}
SCSS
$custom: #cb7af2;
$custom-light: #dda3f7;
$custom-dark: #000000;
JSON
{
  "hex": "#cb7af2",
  "rgb": {
    "r": 203,
    "g": 122,
    "b": 242
  },
  "hsl": {
    "h": 280.5,
    "s": 82.192,
    "l": 71.373
  },
  "oklch": {
    "l": 0.71263,
    "c": 0.18492,
    "h": 313.8
  },
  "luminance": 0.33026
}

Semantic roles & 50–950 ramp

primary
#CB7AF2
secondary
#DEF3D4
accent
#DF074D
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #CB7AF2

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

Preview Lab → · Contrast checker → · Palette generator →

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