#A158D2#A158D2

#A158D2 is a mid, vivid violet. Relative luminance 0.192; OKLCH L 59.9% C 0.187 H 309.5°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#A158D2
RGBrgb(161, 88, 210)
HSLhsl(276, 58%, 58%)
HSVhsv(276, 58%, 82%)
CMYKcmyk(23.3%, 58.1%, 0%, 17.6%)
CIE-LABlab(50.93, 51.24, -51.34)
CIE-LCHlch(50.93, 72.54, 314.94°)
OKLaboklab(59.88% 0.119 -0.1444)
OKLCHoklch(59.88% 0.187 309.5)
XYZxyz(29.8183, 19.2102, 63.0974)
Luminance0.1921 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A158D2 #89D258
analogous
#6458D2 #A158D2 #D258C6
triadic
#A158D2 #D2A158 #58D2A1
tetradic
#A158D2 #D26458 #89D258 #58C6D2
square
#A158D2 #D26458 #89D258 #58C6D2
split-complementary
#A158D2 #C6D258 #58D264
monochromatic
#62258A #8432BB #A158D2 #BC88DF #D7B8EC

Accessibility & contrast

On white

4.34
#A158D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#A158D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A158D2
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A158D2#FFFFFF#000000##000000
##A158D21.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C76D6
Deuteranopia (green-blind)
#4A7ACF
Tritanopia (blue-blind)
#9A6F8D
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #a158d2;
/* rgb */ color: rgb(161, 88, 210);
/* oklch */ color: oklch(59.9% 0.187 309.5);
Tailwind
colors: {
  custom: {
    50: '#c08ae0',
    500: '#a158d2',
    950: '#000000',
  },
}
SCSS
$custom: #a158d2;
$custom-light: #c08ae0;
$custom-dark: #000000;
JSON
{
  "hex": "#a158d2",
  "rgb": {
    "r": 161,
    "g": 88,
    "b": 210
  },
  "hsl": {
    "h": 275.902,
    "s": 57.547,
    "l": 58.431
  },
  "oklch": {
    "l": 0.59883,
    "c": 0.18715,
    "h": 309.5
  },
  "luminance": 0.1921
}

Semantic roles & 50–950 ramp

primary
#A158D2
secondary
#BEDBAB
accent
#E14785
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #A158D2

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

Preview Lab → · Contrast checker → · Palette generator →

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