#A151E2#A151E2

#A151E2 is a mid, highly saturated violet. Relative luminance 0.190; OKLCH L 60.0% C 0.214 H 306.3°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#A151E2
RGBrgb(161, 81, 226)
HSLhsl(273, 71%, 60%)
HSVhsv(273, 64%, 89%)
CMYKcmyk(28.8%, 64.2%, 0%, 11.4%)
CIE-LABlab(50.63, 58.31, -60.91)
CIE-LCHlch(50.63, 84.32, 313.75°)
OKLaboklab(59.98% 0.1269 -0.1725)
OKLCHoklch(59.98% 0.214 306.3)
XYZxyz(31.3649, 18.9532, 73.9428)
Luminance0.1895 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A151E2 #92E251
analogous
#5851E2 #A151E2 #E251DB
triadic
#A151E2 #E2A151 #51E2A1
tetradic
#A151E2 #E25851 #92E251 #51DBE2
square
#A151E2 #E25851 #92E251 #51DBE2
split-complementary
#A151E2 #DBE251 #51E258
monochromatic
#631A9E #8423D3 #A151E2 #BD85EB #DABAF3

Accessibility & contrast

On white

4.38
#A151E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#A151E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A151E2
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A151E2#FFFFFF#000000##000000
##A151E21.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076E6
Deuteranopia (green-blind)
#2F79DF
Tritanopia (blue-blind)
#967093
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #a151e2;
/* rgb */ color: rgb(161, 81, 226);
/* oklch */ color: oklch(60.0% 0.214 306.3);
Tailwind
colors: {
  custom: {
    50: '#c187ec',
    500: '#a151e2',
    950: '#000000',
  },
}
SCSS
$custom: #a151e2;
$custom-light: #c187ec;
$custom-dark: #000000;
JSON
{
  "hex": "#a151e2",
  "rgb": {
    "r": 161,
    "g": 81,
    "b": 226
  },
  "hsl": {
    "h": 273.103,
    "s": 71.429,
    "l": 60.196
  },
  "oklch": {
    "l": 0.59978,
    "c": 0.21411,
    "h": 306.3
  },
  "luminance": 0.18953
}

Semantic roles & 50–950 ramp

primary
#A151E2
secondary
#C5E3AC
accent
#D31269
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #A151E2

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

Preview Lab → · Contrast checker → · Palette generator →

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