#A0158B#A0158B

#A0158B is a mid, highly saturated purple. Relative luminance 0.099; OKLCH L 49.0% C 0.204 H 335.9°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#A0158B
RGBrgb(160, 21, 139)
HSLhsl(309, 77%, 35%)
HSVhsv(309, 87%, 63%)
CMYKcmyk(0%, 86.9%, 13.1%, 37.3%)
CIE-LABlab(37.62, 63.41, -30.52)
CIE-LCHlch(37.62, 70.37, 334.30°)
OKLaboklab(48.96% 0.1863 -0.0835)
OKLCHoklch(48.96% 0.204 335.9)
XYZxyz(19.4259, 9.8759, 25.3043)
Luminance0.0987 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A0158B #15A02A
analogous
#7015A0 #A0158B #A01545
triadic
#A0158B #8BA015 #158BA0
tetradic
#A0158B #A07015 #15A02A #1545A0
square
#A0158B #A07015 #15A02A #1545A0
split-complementary
#A0158B #45A015 #15A070
monochromatic
#34072D #6A0E5C #A0158B #D61CBA #E748CF

Accessibility & contrast

On white

7.06
#A0158B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#A0158B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #A0158B
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A0158B#FFFFFF#000000##FFFFFF
##A0158B1.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174C8E
Deuteranopia (green-blind)
#4E6088
Tritanopia (blue-blind)
#A92452
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #a0158b;
/* rgb */ color: rgb(160, 21, 139);
/* oklch */ color: oklch(49.0% 0.204 335.9);
Tailwind
colors: {
  custom: {
    50: '#c068ad',
    500: '#a0158b',
    950: '#000000',
  },
}
SCSS
$custom: #a0158b;
$custom-light: #c068ad;
$custom-dark: #000000;
JSON
{
  "hex": "#a0158b",
  "rgb": {
    "r": 160,
    "g": 21,
    "b": 139
  },
  "hsl": {
    "h": 309.065,
    "s": 76.796,
    "l": 35.49
  },
  "oklch": {
    "l": 0.48956,
    "c": 0.20413,
    "h": 335.9
  },
  "luminance": 0.09874
}

Semantic roles & 50–950 ramp

primary
#A0158B
secondary
#49C85C
accent
#F35134
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130710
muted
#827A7F

Preview Lab

Preview with #A0158B

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

Preview Lab → · Contrast checker → · Palette generator →

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