#A151DF#A151DF

#A151DF is a mid, highly saturated violet. Relative luminance 0.188; OKLCH L 59.8% C 0.211 H 307.0°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#A151DF
RGBrgb(161, 81, 223)
HSLhsl(274, 69%, 60%)
HSVhsv(274, 64%, 87%)
CMYKcmyk(27.8%, 63.7%, 0%, 12.5%)
CIE-LABlab(50.44, 57.63, -59.52)
CIE-LCHlch(50.44, 82.85, 314.08°)
OKLaboklab(59.78% 0.1271 -0.1684)
OKLCHoklch(59.78% 0.211 307)
XYZxyz(30.9569, 18.7900, 71.7937)
Luminance0.1879 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A151DF #8FDF51
analogous
#5A51DF #A151DF #DF51D6
triadic
#A151DF #DFA151 #51DFA1
tetradic
#A151DF #DF5A51 #8FDF51 #51D6DF
square
#A151DF #DF5A51 #8FDF51 #51D6DF
split-complementary
#A151DF #D6DF51 #51DF5A
monochromatic
#631C99 #8426CD #A151DF #BD85E9 #D9B8F2

Accessibility & contrast

On white

4.41
#A151DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#A151DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A151DF
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A151DF#FFFFFF#000000##000000
##A151DF1.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075E3
Deuteranopia (green-blind)
#3379DC
Tritanopia (blue-blind)
#976F91
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #a151df;
/* rgb */ color: rgb(161, 81, 223);
/* oklch */ color: oklch(59.8% 0.211 307.0);
Tailwind
colors: {
  custom: {
    50: '#c186ea',
    500: '#a151df',
    950: '#000000',
  },
}
SCSS
$custom: #a151df;
$custom-light: #c186ea;
$custom-dark: #000000;
JSON
{
  "hex": "#a151df",
  "rgb": {
    "r": 161,
    "g": 81,
    "b": 223
  },
  "hsl": {
    "h": 273.803,
    "s": 68.932,
    "l": 59.608
  },
  "oklch": {
    "l": 0.59779,
    "c": 0.21095,
    "h": 307
  },
  "luminance": 0.1879
}

Semantic roles & 50–950 ramp

primary
#A151DF
secondary
#C2E1AA
accent
#EC3C89
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #A151DF

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

Preview Lab → · Contrast checker → · Palette generator →

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