#8051CC#8051CC

#8051CC is a mid, vivid violet. Relative luminance 0.148; OKLCH L 54.9% C 0.183 H 297.7°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#8051CC
RGBrgb(128, 81, 204)
HSLhsl(263, 55%, 56%)
HSVhsv(263, 60%, 80%)
CMYKcmyk(37.3%, 60.3%, 0%, 20%)
CIE-LABlab(45.41, 45.73, -56.98)
CIE-LCHlch(45.41, 73.06, 308.75°)
OKLaboklab(54.89% 0.0849 -0.162)
OKLCHoklch(54.89% 0.183 297.7)
XYZxyz(22.7408, 14.8334, 58.7800)
Luminance0.1483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8051CC #9DCC51
analogous
#515FCC #8051CC #BE51CC
triadic
#8051CC #CC8051 #51CC80
tetradic
#8051CC #CC515F #9DCC51 #51CCBE
square
#8051CC #CC515F #9DCC51 #51CCBE
split-complementary
#8051CC #CCBE51 #5FCC51
monochromatic
#47257E #6133AD #8051CC #A380DA #C5B0E8

Accessibility & contrast

On white

5.29
#8051CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#8051CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8051CC
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8051CC#FFFFFF#000000##FFFFFF
##8051CC1.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD0
Deuteranopia (green-blind)
#1D6AC9
Tritanopia (blue-blind)
#6E6C87
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8051cc;
/* rgb */ color: rgb(128, 81, 204);
/* oklch */ color: oklch(54.9% 0.183 297.7);
Tailwind
colors: {
  custom: {
    50: '#aa84dc',
    500: '#8051cc',
    950: '#000000',
  },
}
SCSS
$custom: #8051cc;
$custom-light: #aa84dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8051cc",
  "rgb": {
    "r": 128,
    "g": 81,
    "b": 204
  },
  "hsl": {
    "h": 262.927,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.54887,
    "c": 0.18288,
    "h": 297.7
  },
  "luminance": 0.14834
}

Semantic roles & 50–950 ramp

primary
#8051CC
secondary
#C2D6A3
accent
#DE4AA5
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #8051CC

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

Preview Lab → · Contrast checker → · Palette generator →

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