#A158DB#A158DB

#A158DB is a mid, vivid violet. Relative luminance 0.197; OKLCH L 60.4% C 0.197 H 307.2°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#A158DB
RGBrgb(161, 88, 219)
HSLhsl(273, 65%, 60%)
HSVhsv(273, 60%, 86%)
CMYKcmyk(26.5%, 59.8%, 0%, 14.1%)
CIE-LABlab(51.46, 53.28, -55.61)
CIE-LCHlch(51.46, 77.01, 313.77°)
OKLaboklab(60.44% 0.119 -0.1569)
OKLCHoklch(60.44% 0.197 307.2)
XYZxyz(30.9712, 19.6713, 69.1695)
Luminance0.1967 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A158DB #92DB58
analogous
#5F58DB #A158DB #DB58D4
triadic
#A158DB #DBA158 #58DBA1
tetradic
#A158DB #DB5F58 #92DB58 #58D4DB
square
#A158DB #DB5F58 #92DB58 #58D4DB
split-complementary
#A158DB #D4DB58 #58DB5F
monochromatic
#632198 #842CCA #A158DB #BD8AE6 #DABDF1

Accessibility & contrast

On white

4.26
#A158DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#A158DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A158DB
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A158DB#FFFFFF#000000##000000
##A158DB1.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#1C78DF
Deuteranopia (green-blind)
#417BD8
Tritanopia (blue-blind)
#987291
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #a158db;
/* rgb */ color: rgb(161, 88, 219);
/* oklch */ color: oklch(60.4% 0.197 307.2);
Tailwind
colors: {
  custom: {
    50: '#c08be7',
    500: '#a158db',
    950: '#000000',
  },
}
SCSS
$custom: #a158db;
$custom-light: #c08be7;
$custom-dark: #000000;
JSON
{
  "hex": "#a158db",
  "rgb": {
    "r": 161,
    "g": 88,
    "b": 219
  },
  "hsl": {
    "h": 273.435,
    "s": 64.532,
    "l": 60.196
  },
  "oklch": {
    "l": 0.60441,
    "c": 0.19697,
    "h": 307.2
  },
  "luminance": 0.19671
}

Semantic roles & 50–950 ramp

primary
#A158DB
secondary
#C5E1AE
accent
#CC1968
background
#FCF8FE
surface
#F8F0FC
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #A158DB

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

Preview Lab → · Contrast checker → · Palette generator →

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