#A151EB#A151EB

#A151EB is a mid, highly saturated violet. Relative luminance 0.195; OKLCH L 60.6% C 0.224 H 304.3°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#A151EB
RGBrgb(161, 81, 235)
HSLhsl(271, 79%, 62%)
HSVhsv(271, 66%, 92%)
CMYKcmyk(31.5%, 65.5%, 0%, 7.8%)
CIE-LABlab(51.22, 60.36, -65.04)
CIE-LCHlch(51.22, 88.73, 312.87°)
OKLaboklab(60.59% 0.1261 -0.1846)
OKLCHoklch(60.59% 0.224 304.3)
XYZxyz(32.6324, 19.4602, 80.6182)
Luminance0.1946 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A151EB #9BEB51
analogous
#5451EB #A151EB #EB51E8
triadic
#A151EB #EBA151 #51EBA1
tetradic
#A151EB #EB5451 #9BEB51 #51E8EB
square
#A151EB #EB5451 #9BEB51 #51E8EB
split-complementary
#A151EB #E8EB51 #51EB54
monochromatic
#6414AE #831AE5 #A151EB #BF88F1 #DCBFF8

Accessibility & contrast

On white

4.29
#A151EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#A151EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A151EB
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A151EB#FFFFFF#000000##000000
##A151EB1.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078F0
Deuteranopia (green-blind)
#1D7AE8
Tritanopia (blue-blind)
#937397
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #a151eb;
/* rgb */ color: rgb(161, 81, 235);
/* oklch */ color: oklch(60.6% 0.224 304.3);
Tailwind
colors: {
  custom: {
    50: '#c287f2',
    500: '#a151eb',
    950: '#000000',
  },
}
SCSS
$custom: #a151eb;
$custom-light: #c287f2;
$custom-dark: #000000;
JSON
{
  "hex": "#a151eb",
  "rgb": {
    "r": 161,
    "g": 81,
    "b": 235
  },
  "hsl": {
    "h": 271.169,
    "s": 79.381,
    "l": 61.961
  },
  "oklch": {
    "l": 0.60589,
    "c": 0.22355,
    "h": 304.3
  },
  "luminance": 0.1946
}

Semantic roles & 50–950 ramp

primary
#A151EB
secondary
#CBE8B0
accent
#DC0A6F
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #A151EB

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

Preview Lab → · Contrast checker → · Palette generator →

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