#A158CB#A158CB

#A158CB is a mid, vivid violet. Relative luminance 0.189; OKLCH L 59.5% C 0.180 H 311.4°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#A158CB
RGBrgb(161, 88, 203)
HSLhsl(278, 53%, 57%)
HSVhsv(278, 57%, 80%)
CMYKcmyk(20.7%, 56.7%, 0%, 20.4%)
CIE-LABlab(50.53, 49.69, -47.97)
CIE-LCHlch(50.53, 69.07, 316.01°)
OKLaboklab(59.46% 0.1188 -0.1346)
OKLCHoklch(59.46% 0.18 311.4)
XYZxyz(28.9652, 18.8689, 58.6046)
Luminance0.1887 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A158CB #82CB58
analogous
#6858CB #A158CB #CB58BB
triadic
#A158CB #CBA158 #58CBA1
tetradic
#A158CB #CB6858 #82CB58 #58BBCB
square
#A158CB #CB6858 #82CB58 #58BBCB
split-complementary
#A158CB #BBCB58 #58CB68
monochromatic
#602881 #8337AF #A158CB #BB87DA #D6B5E8

Accessibility & contrast

On white

4.40
#A158CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#A158CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A158CB
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A158CB#FFFFFF#000000##000000
##A158CB1.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3475CF
Deuteranopia (green-blind)
#4F7AC8
Tritanopia (blue-blind)
#9C6C89
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #a158cb;
/* rgb */ color: rgb(161, 88, 203);
/* oklch */ color: oklch(59.5% 0.180 311.4);
Tailwind
colors: {
  custom: {
    50: '#c08adb',
    500: '#a158cb',
    950: '#000000',
  },
}
SCSS
$custom: #a158cb;
$custom-light: #c08adb;
$custom-dark: #000000;
JSON
{
  "hex": "#a158cb",
  "rgb": {
    "r": 161,
    "g": 88,
    "b": 203
  },
  "hsl": {
    "h": 278.087,
    "s": 52.511,
    "l": 57.059
  },
  "oklch": {
    "l": 0.59463,
    "c": 0.17953,
    "h": 311.4
  },
  "luminance": 0.18868
}

Semantic roles & 50–950 ramp

primary
#A158CB
secondary
#B9D7A8
accent
#DC4C80
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #A158CB

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

Preview Lab → · Contrast checker → · Palette generator →

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