#A158D3#A158D3

#A158D3 is a mid, vivid violet. Relative luminance 0.193; OKLCH L 59.9% C 0.188 H 309.2°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#A158D3
RGBrgb(161, 88, 211)
HSLhsl(276, 58%, 59%)
HSVhsv(276, 58%, 83%)
CMYKcmyk(23.7%, 58.3%, 0%, 17.3%)
CIE-LABlab(50.99, 51.47, -51.82)
CIE-LCHlch(50.99, 73.04, 314.80°)
OKLaboklab(59.94% 0.119 -0.1458)
OKLCHoklch(59.94% 0.188 309.2)
XYZxyz(29.9432, 19.2602, 63.7556)
Luminance0.1926 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A158D3 #8AD358
analogous
#6358D3 #A158D3 #D358C7
triadic
#A158D3 #D3A158 #58D3A1
tetradic
#A158D3 #D36358 #8AD358 #58C7D3
square
#A158D3 #D36358 #8AD358 #58C7D3
split-complementary
#A158D3 #C7D358 #58D363
monochromatic
#62258C #8432BC #A158D3 #BC88E0 #D8B9ED

Accessibility & contrast

On white

4.33
#A158D3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#A158D3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A158D3
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A158D3#FFFFFF#000000##000000
##A158D31.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A76D7
Deuteranopia (green-blind)
#497AD0
Tritanopia (blue-blind)
#9A6F8D
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #a158d3;
/* rgb */ color: rgb(161, 88, 211);
/* oklch */ color: oklch(59.9% 0.188 309.2);
Tailwind
colors: {
  custom: {
    50: '#c08ae1',
    500: '#a158d3',
    950: '#000000',
  },
}
SCSS
$custom: #a158d3;
$custom-light: #c08ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#a158d3",
  "rgb": {
    "r": 161,
    "g": 88,
    "b": 211
  },
  "hsl": {
    "h": 275.61,
    "s": 58.294,
    "l": 58.627
  },
  "oklch": {
    "l": 0.59944,
    "c": 0.18823,
    "h": 309.2
  },
  "luminance": 0.1926
}

Semantic roles & 50–950 ramp

primary
#A158D3
secondary
#BFDCAB
accent
#E24685
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #A158D3

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

Preview Lab → · Contrast checker → · Palette generator →

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