#8151CC#8151CC

#8151CC is a mid, vivid violet. Relative luminance 0.149; OKLCH L 55.0% C 0.183 H 298.1°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#8151CC
RGBrgb(129, 81, 204)
HSLhsl(263, 55%, 56%)
HSVhsv(263, 60%, 80%)
CMYKcmyk(36.8%, 60.3%, 0%, 20%)
CIE-LABlab(45.51, 45.95, -56.80)
CIE-LCHlch(45.51, 73.06, 308.97°)
OKLaboklab(54.99% 0.0862 -0.1614)
OKLCHoklch(54.99% 0.183 298.1)
XYZxyz(22.8920, 14.9113, 58.7871)
Luminance0.1491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8151CC #9CCC51
analogous
#515ECC #8151CC #BF51CC
triadic
#8151CC #CC8151 #51CC81
tetradic
#8151CC #CC515E #9CCC51 #51CCBF
square
#8151CC #CC515E #9CCC51 #51CCBF
split-complementary
#8151CC #CCBF51 #5ECC51
monochromatic
#48257E #6233AD #8151CC #A380DA #C6B0E8

Accessibility & contrast

On white

5.27
#8151CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#8151CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8151CC
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8151CC#FFFFFF#000000##FFFFFF
##8151CC1.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD0
Deuteranopia (green-blind)
#1F6AC9
Tritanopia (blue-blind)
#706C87
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8151cc;
/* rgb */ color: rgb(129, 81, 204);
/* oklch */ color: oklch(55.0% 0.183 298.1);
Tailwind
colors: {
  custom: {
    50: '#aa84dc',
    500: '#8151cc',
    950: '#000000',
  },
}
SCSS
$custom: #8151cc;
$custom-light: #aa84dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8151cc",
  "rgb": {
    "r": 129,
    "g": 81,
    "b": 204
  },
  "hsl": {
    "h": 263.415,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.5499,
    "c": 0.183,
    "h": 298.1
  },
  "luminance": 0.14912
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8151CC

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

Preview Lab → · Contrast checker → · Palette generator →

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