#8151AF#8151AF

#8151AF is a mid, vivid violet. Relative luminance 0.136; OKLCH L 53.1% C 0.148 H 305.5°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#8151AF
RGBrgb(129, 81, 175)
HSLhsl(271, 37%, 50%)
HSVhsv(271, 54%, 69%)
CMYKcmyk(26.3%, 53.7%, 0%, 31.4%)
CIE-LABlab(43.72, 38.63, -42.78)
CIE-LCHlch(43.72, 57.65, 312.08°)
OKLaboklab(53.1% 0.0859 -0.1203)
OKLCHoklch(53.1% 0.148 305.5)
XYZxyz(19.7319, 13.6473, 42.1438)
Luminance0.1365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8151AF #7FAF51
analogous
#5251AF #8151AF #AF51AE
triadic
#8151AF #AF8151 #51AF81
tetradic
#8151AF #AF5251 #7FAF51 #51AEAF
square
#8151AF #AF5251 #7FAF51 #51AEAF
split-complementary
#8151AF #AEAF51 #51AF52
monochromatic
#432A5C #623D85 #8151AF #9F7BC2 #BEA5D6

Accessibility & contrast

On white

5.63
#8151AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#8151AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8151AF
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8151AF#FFFFFF#000000##FFFFFF
##8151AF1.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3266B2
Deuteranopia (green-blind)
#4268AD
Tritanopia (blue-blind)
#796278
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8151af;
/* rgb */ color: rgb(129, 81, 175);
/* oklch */ color: oklch(53.1% 0.148 305.5);
Tailwind
colors: {
  custom: {
    50: '#a883c7',
    500: '#8151af',
    950: '#000000',
  },
}
SCSS
$custom: #8151af;
$custom-light: #a883c7;
$custom-dark: #000000;
JSON
{
  "hex": "#8151af",
  "rgb": {
    "r": 129,
    "g": 81,
    "b": 175
  },
  "hsl": {
    "h": 270.638,
    "s": 37.008,
    "l": 50.196
  },
  "oklch": {
    "l": 0.53102,
    "c": 0.14781,
    "h": 305.5
  },
  "luminance": 0.13647
}

Semantic roles & 50–950 ramp

primary
#8151AF
secondary
#ADC399
accent
#CD5B93
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100B13
muted
#7F7C82

Preview Lab

Preview with #8151AF

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

Preview Lab → · Contrast checker → · Palette generator →

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