#A158BB#A158BB

#A158BB is a mid, vivid purple. Relative luminance 0.181; OKLCH L 58.6% C 0.162 H 316.5°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#A158BB
RGBrgb(161, 88, 187)
HSLhsl(284, 42%, 54%)
HSVhsv(284, 53%, 73%)
CMYKcmyk(13.9%, 52.9%, 0%, 26.7%)
CIE-LABlab(49.67, 46.25, -40.12)
CIE-LCHlch(49.67, 61.22, 319.06°)
OKLaboklab(58.55% 0.1177 -0.1117)
OKLCHoklch(58.55% 0.162 316.5)
XYZxyz(27.1560, 18.1453, 49.0760)
Luminance0.1814 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A158BB #72BB58
analogous
#7058BB #A158BB #BB58A4
triadic
#A158BB #BBA158 #58BBA1
tetradic
#A158BB #BB7058 #72BB58 #58A4BB
square
#A158BB #BB7058 #72BB58 #58A4BB
split-complementary
#A158BB #A4BB58 #58BB70
monochromatic
#5C2C6C #803E98 #A158BB #B983CD #D2AFDE

Accessibility & contrast

On white

4.54
#A158BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#A158BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A158BB
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A158BB#FFFFFF#000000##000000
##A158BB1.004.544.634.63
#FFFFFF4.541.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4272BE
Deuteranopia (green-blind)
#5A78B8
Tritanopia (blue-blind)
#A06781
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #a158bb;
/* rgb */ color: rgb(161, 88, 187);
/* oklch */ color: oklch(58.6% 0.162 316.5);
Tailwind
colors: {
  custom: {
    50: '#bf8ad0',
    500: '#a158bb',
    950: '#000000',
  },
}
SCSS
$custom: #a158bb;
$custom-light: #bf8ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#a158bb",
  "rgb": {
    "r": 161,
    "g": 88,
    "b": 187
  },
  "hsl": {
    "h": 284.242,
    "s": 42.128,
    "l": 53.922
  },
  "oklch": {
    "l": 0.5855,
    "c": 0.16228,
    "h": 316.5
  },
  "luminance": 0.18144
}

Semantic roles & 50–950 ramp

primary
#A158BB
secondary
#ADCDA2
accent
#D25676
background
#FCF8FC
surface
#F8F0F9
border
#D1CBD2
text
#120C14
muted
#817D82

Preview Lab

Preview with #A158BB

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

Preview Lab → · Contrast checker → · Palette generator →

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