#A158DD#A158DD

#A158DD is a mid, vivid violet. Relative luminance 0.198; OKLCH L 60.6% C 0.199 H 306.7°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#A158DD
RGBrgb(161, 88, 221)
HSLhsl(273, 66%, 61%)
HSVhsv(273, 60%, 87%)
CMYKcmyk(27.1%, 60.2%, 0%, 13.3%)
CIE-LABlab(51.58, 53.73, -56.55)
CIE-LCHlch(51.58, 78.01, 313.54°)
OKLaboklab(60.57% 0.119 -0.1597)
OKLCHoklch(60.57% 0.199 306.7)
XYZxyz(31.2361, 19.7773, 70.5644)
Luminance0.1978 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A158DD #94DD58
analogous
#5E58DD #A158DD #DD58D7
triadic
#A158DD #DDA158 #58DDA1
tetradic
#A158DD #DD5E58 #94DD58 #58D7DD
square
#A158DD #DD5E58 #94DD58 #58D7DD
split-complementary
#A158DD #D7DD58 #58DD5E
monochromatic
#63209B #842ACE #A158DD #BE8BE7 #DABEF2

Accessibility & contrast

On white

4.24
#A158DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#A158DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A158DD
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A158DD#FFFFFF#000000##000000
##A158DD1.004.244.964.96
#FFFFFF4.241.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#1878E1
Deuteranopia (green-blind)
#3F7BDA
Tritanopia (blue-blind)
#977292
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #a158dd;
/* rgb */ color: rgb(161, 88, 221);
/* oklch */ color: oklch(60.6% 0.199 306.7);
Tailwind
colors: {
  custom: {
    50: '#c18be8',
    500: '#a158dd',
    950: '#000000',
  },
}
SCSS
$custom: #a158dd;
$custom-light: #c18be8;
$custom-dark: #000000;
JSON
{
  "hex": "#a158dd",
  "rgb": {
    "r": 161,
    "g": 88,
    "b": 221
  },
  "hsl": {
    "h": 272.932,
    "s": 66.169,
    "l": 60.588
  },
  "oklch": {
    "l": 0.60568,
    "c": 0.19914,
    "h": 306.7
  },
  "luminance": 0.19777
}

Semantic roles & 50–950 ramp

primary
#A158DD
secondary
#C6E2AF
accent
#CE176A
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #A158DD

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

Preview Lab → · Contrast checker → · Palette generator →

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