#A158DC#A158DC

#A158DC is a mid, vivid violet. Relative luminance 0.197; OKLCH L 60.5% C 0.198 H 306.9°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#A158DC
RGBrgb(161, 88, 220)
HSLhsl(273, 65%, 60%)
HSVhsv(273, 60%, 86%)
CMYKcmyk(26.8%, 60%, 0%, 13.7%)
CIE-LABlab(51.52, 53.50, -56.08)
CIE-LCHlch(51.52, 77.51, 313.65°)
OKLaboklab(60.51% 0.119 -0.1583)
OKLCHoklch(60.51% 0.198 306.9)
XYZxyz(31.1032, 19.7242, 69.8649)
Luminance0.1972 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A158DC #93DC58
analogous
#5F58DC #A158DC #DC58D5
triadic
#A158DC #DCA158 #58DCA1
tetradic
#A158DC #DC5F58 #93DC58 #58D5DC
square
#A158DC #DC5F58 #93DC58 #58D5DC
split-complementary
#A158DC #D5DC58 #58DC5F
monochromatic
#632099 #842BCC #A158DC #BD8BE7 #DABDF1

Accessibility & contrast

On white

4.25
#A158DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#A158DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A158DC
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A158DC#FFFFFF#000000##000000
##A158DC1.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#1A78E0
Deuteranopia (green-blind)
#407BD9
Tritanopia (blue-blind)
#987292
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #a158dc;
/* rgb */ color: rgb(161, 88, 220);
/* oklch */ color: oklch(60.5% 0.198 306.9);
Tailwind
colors: {
  custom: {
    50: '#c08be7',
    500: '#a158dc',
    950: '#000000',
  },
}
SCSS
$custom: #a158dc;
$custom-light: #c08be7;
$custom-dark: #000000;
JSON
{
  "hex": "#a158dc",
  "rgb": {
    "r": 161,
    "g": 88,
    "b": 220
  },
  "hsl": {
    "h": 273.182,
    "s": 65.347,
    "l": 60.392
  },
  "oklch": {
    "l": 0.60505,
    "c": 0.19805,
    "h": 306.9
  },
  "luminance": 0.19724
}

Semantic roles & 50–950 ramp

primary
#A158DC
secondary
#C5E1AF
accent
#CD1869
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #A158DC

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

Preview Lab → · Contrast checker → · Palette generator →

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