#CB7AFA#CB7AFA

#CB7AFA is a light, vivid violet. Relative luminance 0.335; OKLCH L 71.7% C 0.194 H 311.7°. Best body text is #000000 at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#CB7AFA
RGBrgb(203, 122, 250)
HSLhsl(278, 93%, 73%)
HSVhsv(278, 51%, 98%)
CMYKcmyk(18.8%, 51.2%, 0%, 2%)
CIE-LABlab(64.58, 53.16, -51.73)
CIE-LCHlch(64.58, 74.17, 315.78°)
OKLaboklab(71.68% 0.1287 -0.1446)
OKLCHoklch(71.68% 0.194 311.7)
XYZxyz(48.8404, 33.5187, 94.3209)
Luminance0.3352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB7AFA #A9FA7A
analogous
#8B7AFA #CB7AFA #FA7AE9
triadic
#CB7AFA #FACB7A #7AFACB
tetradic
#CB7AFA #FA8B7A #A9FA7A #7AE9FA
square
#CB7AFA #FA8B7A #A9FA7A #7AE9FA
split-complementary
#CB7AFA #E9FA7A #7AFA8B
monochromatic
#9C09F1 #B43FF8 #CB7AFA #E2B5FC #F3E2FE

Accessibility & contrast

On white

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

On black

7.70
#CB7AFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB7AFA
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB7AFA#FFFFFF#000000##000000
##CB7AFA1.002.737.707.70
#FFFFFF2.731.0021.0021.00
#0000007.7021.001.001.00
##0000007.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5998FE
Deuteranopia (green-blind)
#729EF7
Tritanopia (blue-blind)
#C68FAF
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cb7afa;
/* rgb */ color: rgb(203, 122, 250);
/* oklch */ color: oklch(71.7% 0.194 311.7);
Tailwind
colors: {
  custom: {
    50: '#dda3fc',
    500: '#cb7afa',
    950: '#000000',
  },
}
SCSS
$custom: #cb7afa;
$custom-light: #dda3fc;
$custom-dark: #000000;
JSON
{
  "hex": "#cb7afa",
  "rgb": {
    "r": 203,
    "g": 122,
    "b": 250
  },
  "hsl": {
    "h": 277.969,
    "s": 92.754,
    "l": 72.941
  },
  "oklch": {
    "l": 0.71684,
    "c": 0.19354,
    "h": 311.7
  },
  "luminance": 0.33518
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CB7AFA

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

Preview Lab → · Contrast checker → · Palette generator →

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