#A158D9#A158D9

#A158D9 is a mid, vivid violet. Relative luminance 0.196; OKLCH L 60.3% C 0.195 H 307.7°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#A158D9
RGBrgb(161, 88, 217)
HSLhsl(274, 63%, 60%)
HSVhsv(274, 59%, 85%)
CMYKcmyk(25.8%, 59.4%, 0%, 14.9%)
CIE-LABlab(51.34, 52.82, -54.67)
CIE-LCHlch(51.34, 76.02, 314.01°)
OKLaboklab(60.32% 0.119 -0.1542)
OKLCHoklch(60.32% 0.195 307.7)
XYZxyz(30.7095, 19.5667, 67.7911)
Luminance0.1957 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A158D9 #90D958
analogous
#6058D9 #A158D9 #D958D1
triadic
#A158D9 #D9A158 #58D9A1
tetradic
#A158D9 #D96058 #90D958 #58D1D9
square
#A158D9 #D96058 #90D958 #58D1D9
split-complementary
#A158D9 #D1D958 #58D960
monochromatic
#632295 #842DC7 #A158D9 #BD8AE4 #D9BCF0

Accessibility & contrast

On white

4.27
#A158D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#A158D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A158D9
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A158D9#FFFFFF#000000##000000
##A158D91.004.274.914.91
#FFFFFF4.271.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2178DD
Deuteranopia (green-blind)
#437BD6
Tritanopia (blue-blind)
#987190
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #a158d9;
/* rgb */ color: rgb(161, 88, 217);
/* oklch */ color: oklch(60.3% 0.195 307.7);
Tailwind
colors: {
  custom: {
    50: '#c08be5',
    500: '#a158d9',
    950: '#000000',
  },
}
SCSS
$custom: #a158d9;
$custom-light: #c08be5;
$custom-dark: #000000;
JSON
{
  "hex": "#a158d9",
  "rgb": {
    "r": 161,
    "g": 88,
    "b": 217
  },
  "hsl": {
    "h": 273.953,
    "s": 62.927,
    "l": 59.804
  },
  "oklch": {
    "l": 0.60315,
    "c": 0.19478,
    "h": 307.7
  },
  "luminance": 0.19566
}

Semantic roles & 50–950 ramp

primary
#A158D9
secondary
#C3DFAD
accent
#E64289
background
#FCF8FE
surface
#F8F0FC
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #A158D9

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

Preview Lab → · Contrast checker → · Palette generator →

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