#A151E5#A151E5

#A151E5 is a mid, highly saturated violet. Relative luminance 0.191; OKLCH L 60.2% C 0.217 H 305.7°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#A151E5
RGBrgb(161, 81, 229)
HSLhsl(272, 74%, 61%)
HSVhsv(272, 65%, 90%)
CMYKcmyk(29.7%, 64.6%, 0%, 10.2%)
CIE-LABlab(50.83, 58.99, -62.29)
CIE-LCHlch(50.83, 85.79, 313.44°)
OKLaboklab(60.18% 0.1266 -0.1765)
OKLCHoklch(60.18% 0.217 305.7)
XYZxyz(31.7801, 19.1193, 76.1297)
Luminance0.1912 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A151E5 #95E551
analogous
#5751E5 #A151E5 #E551DF
triadic
#A151E5 #E5A151 #51E5A1
tetradic
#A151E5 #E55751 #95E551 #51DFE5
square
#A151E5 #E55751 #95E551 #51DFE5
split-complementary
#A151E5 #DFE551 #51E557
monochromatic
#6318A3 #8420D8 #A151E5 #BE86ED #DBBBF5

Accessibility & contrast

On white

4.35
#A151E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#A151E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A151E5
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A151E5#FFFFFF#000000##000000
##A151E51.004.354.824.82
#FFFFFF4.351.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077EA
Deuteranopia (green-blind)
#2A79E2
Tritanopia (blue-blind)
#957194
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #a151e5;
/* rgb */ color: rgb(161, 81, 229);
/* oklch */ color: oklch(60.2% 0.217 305.7);
Tailwind
colors: {
  custom: {
    50: '#c187ee',
    500: '#a151e5',
    950: '#000000',
  },
}
SCSS
$custom: #a151e5;
$custom-light: #c187ee;
$custom-dark: #000000;
JSON
{
  "hex": "#a151e5",
  "rgb": {
    "r": 161,
    "g": 81,
    "b": 229
  },
  "hsl": {
    "h": 272.432,
    "s": 74,
    "l": 60.784
  },
  "oklch": {
    "l": 0.6018,
    "c": 0.21726,
    "h": 305.7
  },
  "luminance": 0.19119
}

Semantic roles & 50–950 ramp

primary
#A151E5
secondary
#C7E5AD
accent
#D60F6B
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #A151E5

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

Preview Lab → · Contrast checker → · Palette generator →

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