#8051CB#8051CB

#8051CB is a mid, vivid violet. Relative luminance 0.148; OKLCH L 54.8% C 0.182 H 297.9°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#8051CB
RGBrgb(128, 81, 203)
HSLhsl(263, 54%, 56%)
HSVhsv(263, 60%, 80%)
CMYKcmyk(36.9%, 60.1%, 0%, 20.4%)
CIE-LABlab(45.34, 45.47, -56.51)
CIE-LCHlch(45.34, 72.53, 308.82°)
OKLaboklab(54.82% 0.085 -0.1606)
OKLCHoklch(54.82% 0.182 297.9)
XYZxyz(22.6213, 14.7855, 58.1504)
Luminance0.1479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8051CB #9CCB51
analogous
#515FCB #8051CB #BD51CB
triadic
#8051CB #CB8051 #51CB80
tetradic
#8051CB #CB515F #9CCB51 #51CBBD
square
#8051CB #CB515F #9CCB51 #51CBBD
split-complementary
#8051CB #CBBD51 #5FCB51
monochromatic
#47257C #6233AC #8051CB #A280D9 #C5AFE7

Accessibility & contrast

On white

5.31
#8051CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#8051CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8051CB
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8051CB#FFFFFF#000000##FFFFFF
##8051CB1.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CCF
Deuteranopia (green-blind)
#1F6AC8
Tritanopia (blue-blind)
#6F6B86
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8051cb;
/* rgb */ color: rgb(128, 81, 203);
/* oklch */ color: oklch(54.8% 0.182 297.9);
Tailwind
colors: {
  custom: {
    50: '#aa84dc',
    500: '#8051cb',
    950: '#000000',
  },
}
SCSS
$custom: #8051cb;
$custom-light: #aa84dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8051cb",
  "rgb": {
    "r": 128,
    "g": 81,
    "b": 203
  },
  "hsl": {
    "h": 263.115,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.54818,
    "c": 0.18167,
    "h": 297.9
  },
  "luminance": 0.14786
}

Semantic roles & 50–950 ramp

primary
#8051CB
secondary
#C2D5A3
accent
#DD4AA5
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #8051CB

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

Preview Lab → · Contrast checker → · Palette generator →

#8051CB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva