#A151D4#A151D4

#A151D4 is a mid, vivid violet. Relative luminance 0.182; OKLCH L 59.1% C 0.199 H 309.8°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#A151D4
RGBrgb(161, 81, 212)
HSLhsl(277, 60%, 57%)
HSVhsv(277, 62%, 83%)
CMYKcmyk(24.1%, 61.8%, 0%, 16.9%)
CIE-LABlab(49.76, 55.18, -54.37)
CIE-LCHlch(49.76, 77.46, 315.43°)
OKLaboklab(59.07% 0.1276 -0.1533)
OKLCHoklch(59.07% 0.199 309.8)
XYZxyz(29.5217, 18.2160, 64.2354)
Luminance0.1822 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A151D4 #84D451
analogous
#5F51D4 #A151D4 #D451C6
triadic
#A151D4 #D4A151 #51D4A1
tetradic
#A151D4 #D45F51 #84D451 #51C6D4
square
#A151D4 #D45F51 #84D451 #51C6D4
split-complementary
#A151D4 #C6D451 #51D45F
monochromatic
#612289 #832EBA #A151D4 #BC82E0 #D6B3EC

Accessibility & contrast

On white

4.52
#A151D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#A151D4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A151D4
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A151D4#FFFFFF#000000##000000
##A151D41.004.524.644.64
#FFFFFF4.521.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#1273D8
Deuteranopia (green-blind)
#4078D1
Tritanopia (blue-blind)
#9A6B8B
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #a151d4;
/* rgb */ color: rgb(161, 81, 212);
/* oklch */ color: oklch(59.1% 0.199 309.8);
Tailwind
colors: {
  custom: {
    50: '#c086e2',
    500: '#a151d4',
    950: '#000000',
  },
}
SCSS
$custom: #a151d4;
$custom-light: #c086e2;
$custom-dark: #000000;
JSON
{
  "hex": "#a151d4",
  "rgb": {
    "r": 161,
    "g": 81,
    "b": 212
  },
  "hsl": {
    "h": 276.641,
    "s": 60.369,
    "l": 57.451
  },
  "oklch": {
    "l": 0.59066,
    "c": 0.19941,
    "h": 309.8
  },
  "luminance": 0.18215
}

Semantic roles & 50–950 ramp

primary
#A151D4
secondary
#BBDBA6
accent
#E44482
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130B15
muted
#827C83

Preview Lab

Preview with #A151D4

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

Preview Lab → · Contrast checker → · Palette generator →

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