#CB7AF8#CB7AF8

#CB7AF8 is a light, vivid violet. Relative luminance 0.334; OKLCH L 71.6% C 0.191 H 312.2°. Best body text is #000000 at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#CB7AF8
RGBrgb(203, 122, 248)
HSLhsl(279, 90%, 73%)
HSVhsv(279, 51%, 97%)
CMYKcmyk(18.1%, 50.8%, 0%, 2.7%)
CIE-LABlab(64.48, 52.74, -50.78)
CIE-LCHlch(64.48, 73.21, 316.08°)
OKLaboklab(71.58% 0.1285 -0.1418)
OKLCHoklch(71.58% 0.191 312.2)
XYZxyz(48.5284, 33.3940, 92.6780)
Luminance0.3339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB7AF8 #A7F87A
analogous
#8C7AF8 #CB7AF8 #F87AE6
triadic
#CB7AF8 #F8CB7A #7AF8CB
tetradic
#CB7AF8 #F88C7A #A7F87A #7AE6F8
square
#CB7AF8 #F88C7A #A7F87A #7AE6F8
split-complementary
#CB7AF8 #E6F87A #7AF88C
monochromatic
#9C0CEB #B440F5 #CB7AF8 #E2B4FB #F4E2FD

Accessibility & contrast

On white

2.73
#CB7AF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.68
#CB7AF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB7AF8
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB7AF8#FFFFFF#000000##000000
##CB7AF81.002.737.687.68
#FFFFFF2.731.0021.0021.00
#0000007.6821.001.001.00
##0000007.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B98FC
Deuteranopia (green-blind)
#739EF5
Tritanopia (blue-blind)
#C68FAE
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #cb7af8;
/* rgb */ color: rgb(203, 122, 248);
/* oklch */ color: oklch(71.6% 0.191 312.2);
Tailwind
colors: {
  custom: {
    50: '#dda3fb',
    500: '#cb7af8',
    950: '#000000',
  },
}
SCSS
$custom: #cb7af8;
$custom-light: #dda3fb;
$custom-dark: #000000;
JSON
{
  "hex": "#cb7af8",
  "rgb": {
    "r": 203,
    "g": 122,
    "b": 248
  },
  "hsl": {
    "h": 278.571,
    "s": 90,
    "l": 72.549
  },
  "oklch": {
    "l": 0.71578,
    "c": 0.19137,
    "h": 312.2
  },
  "luminance": 0.33393
}

Semantic roles & 50–950 ramp

primary
#CB7AF8
secondary
#E1F6D5
accent
#E60052
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #CB7AF8

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

Preview Lab → · Contrast checker → · Palette generator →

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