#A151E4#A151E4

#A151E4 is a mid, highly saturated violet. Relative luminance 0.191; OKLCH L 60.1% C 0.216 H 305.9°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#A151E4
RGBrgb(161, 81, 228)
HSLhsl(273, 73%, 61%)
HSVhsv(273, 64%, 89%)
CMYKcmyk(29.4%, 64.5%, 0%, 10.6%)
CIE-LABlab(50.76, 58.76, -61.83)
CIE-LCHlch(50.76, 85.30, 313.54°)
OKLaboklab(60.11% 0.1267 -0.1752)
OKLCHoklch(60.11% 0.216 305.9)
XYZxyz(31.6409, 19.0636, 75.3965)
Luminance0.1906 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A151E4 #94E451
analogous
#5751E4 #A151E4 #E451DD
triadic
#A151E4 #E4A151 #51E4A1
tetradic
#A151E4 #E45751 #94E451 #51DDE4
square
#A151E4 #E45751 #94E451 #51DDE4
split-complementary
#A151E4 #DDE451 #51E457
monochromatic
#6319A2 #8421D7 #A151E4 #BE86EC #DABBF4

Accessibility & contrast

On white

4.36
#A151E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#A151E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A151E4
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A151E4#FFFFFF#000000##000000
##A151E41.004.364.814.81
#FFFFFF4.361.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076E8
Deuteranopia (green-blind)
#2C79E1
Tritanopia (blue-blind)
#957094
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #a151e4;
/* rgb */ color: rgb(161, 81, 228);
/* oklch */ color: oklch(60.1% 0.216 305.9);
Tailwind
colors: {
  custom: {
    50: '#c187ed',
    500: '#a151e4',
    950: '#000000',
  },
}
SCSS
$custom: #a151e4;
$custom-light: #c187ed;
$custom-dark: #000000;
JSON
{
  "hex": "#a151e4",
  "rgb": {
    "r": 161,
    "g": 81,
    "b": 228
  },
  "hsl": {
    "h": 272.653,
    "s": 73.134,
    "l": 60.588
  },
  "oklch": {
    "l": 0.60113,
    "c": 0.21621,
    "h": 305.9
  },
  "luminance": 0.19063
}

Semantic roles & 50–950 ramp

primary
#A151E4
secondary
#C6E4AC
accent
#D5106A
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #A151E4

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

Preview Lab → · Contrast checker → · Palette generator →

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