#8051CF#8051CF

#8051CF is a mid, vivid violet. Relative luminance 0.150; OKLCH L 55.1% C 0.186 H 297.0°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#8051CF
RGBrgb(128, 81, 207)
HSLhsl(262, 57%, 56%)
HSVhsv(262, 61%, 81%)
CMYKcmyk(38.2%, 60.9%, 0%, 18.8%)
CIE-LABlab(45.60, 46.51, -58.38)
CIE-LCHlch(45.60, 74.64, 308.54°)
OKLaboklab(55.1% 0.0848 -0.1661)
OKLCHoklch(55.1% 0.186 297)
XYZxyz(23.1041, 14.9787, 60.6933)
Luminance0.1498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8051CF #A0CF51
analogous
#5161CF #8051CF #BF51CF
triadic
#8051CF #CF8051 #51CF80
tetradic
#8051CF #CF5161 #A0CF51 #51CFBF
square
#8051CF #CF5161 #A0CF51 #51CFBF
split-complementary
#8051CF #CFBF51 #61CF51
monochromatic
#472482 #6131B2 #8051CF #A381DC #C6B1E9

Accessibility & contrast

On white

5.26
#8051CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#8051CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8051CF
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8051CF#FFFFFF#000000##FFFFFF
##8051CF1.005.264.005.26
#FFFFFF5.261.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD3
Deuteranopia (green-blind)
#166ACC
Tritanopia (blue-blind)
#6D6D88
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8051cf;
/* rgb */ color: rgb(128, 81, 207);
/* oklch */ color: oklch(55.1% 0.186 297.0);
Tailwind
colors: {
  custom: {
    50: '#aa84de',
    500: '#8051cf',
    950: '#000000',
  },
}
SCSS
$custom: #8051cf;
$custom-light: #aa84de;
$custom-dark: #000000;
JSON
{
  "hex": "#8051cf",
  "rgb": {
    "r": 128,
    "g": 81,
    "b": 207
  },
  "hsl": {
    "h": 262.381,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.55096,
    "c": 0.18648,
    "h": 297
  },
  "luminance": 0.14979
}

Semantic roles & 50–950 ramp

primary
#8051CF
secondary
#C4D8A4
accent
#E048A7
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #8051CF

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

Preview Lab → · Contrast checker → · Palette generator →

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