#A151D8#A151D8

#A151D8 is a mid, highly saturated violet. Relative luminance 0.184; OKLCH L 59.3% C 0.204 H 308.7°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#A151D8
RGBrgb(161, 81, 216)
HSLhsl(276, 63%, 58%)
HSVhsv(276, 63%, 85%)
CMYKcmyk(25.5%, 62.5%, 0%, 15.3%)
CIE-LABlab(50.00, 56.06, -56.25)
CIE-LCHlch(50.00, 79.42, 314.90°)
OKLaboklab(59.32% 0.1274 -0.1588)
OKLCHoklch(59.32% 0.204 308.7)
XYZxyz(30.0326, 18.4203, 66.9258)
Luminance0.1842 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A151D8 #88D851
analogous
#5E51D8 #A151D8 #D851CB
triadic
#A151D8 #D8A151 #51D8A1
tetradic
#A151D8 #D85E51 #88D851 #51CBD8
square
#A151D8 #D85E51 #88D851 #51CBD8
split-complementary
#A151D8 #CBD851 #51D85E
monochromatic
#62208F #842BC1 #A151D8 #BC83E3 #D7B5EE

Accessibility & contrast

On white

4.48
#A151D8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#A151D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A151D8
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A151D8#FFFFFF#000000##000000
##A151D81.004.484.684.68
#FFFFFF4.481.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0174DC
Deuteranopia (green-blind)
#3C78D5
Tritanopia (blue-blind)
#996C8D
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #a151d8;
/* rgb */ color: rgb(161, 81, 216);
/* oklch */ color: oklch(59.3% 0.204 308.7);
Tailwind
colors: {
  custom: {
    50: '#c186e5',
    500: '#a151d8',
    950: '#000000',
  },
}
SCSS
$custom: #a151d8;
$custom-light: #c186e5;
$custom-dark: #000000;
JSON
{
  "hex": "#a151d8",
  "rgb": {
    "r": 161,
    "g": 81,
    "b": 216
  },
  "hsl": {
    "h": 275.556,
    "s": 63.38,
    "l": 58.235
  },
  "oklch": {
    "l": 0.59322,
    "c": 0.2036,
    "h": 308.7
  },
  "luminance": 0.1842
}

Semantic roles & 50–950 ramp

primary
#A151D8
secondary
#BDDDA8
accent
#E64185
background
#FCF8FE
surface
#F8F0FC
border
#D1CBD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #A151D8

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

Preview Lab → · Contrast checker → · Palette generator →

#A151D8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva