#A158E9#A158E9

#A158E9 is a mid, highly saturated violet. Relative luminance 0.204; OKLCH L 61.3% C 0.212 H 303.9°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#A158E9
RGBrgb(161, 88, 233)
HSLhsl(270, 77%, 63%)
HSVhsv(270, 62%, 91%)
CMYKcmyk(30.9%, 62.2%, 0%, 8.6%)
CIE-LABlab(52.33, 56.51, -62.12)
CIE-LCHlch(52.33, 83.98, 312.29°)
OKLaboklab(61.35% 0.1185 -0.1761)
OKLCHoklch(61.35% 0.212 303.9)
XYZxyz(32.8923, 20.4398, 79.2874)
Luminance0.2044 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A158E9 #A0E958
analogous
#5858E9 #A158E9 #E958E9
triadic
#A158E9 #E9A158 #58E9A1
tetradic
#A158E9 #E95858 #A0E958 #58E9E9
square
#A158E9 #E95858 #A0E958 #58E9E9
split-complementary
#A158E9 #E9E958 #58E958
monochromatic
#6417AF #8322E2 #A158E9 #BF8EF0 #DEC4F7

Accessibility & contrast

On white

4.13
#A158E9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#A158E9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A158E9
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A158E9#FFFFFF#000000##000000
##A158E91.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BEE
Deuteranopia (green-blind)
#307DE6
Tritanopia (blue-blind)
#947799
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #a158e9;
/* rgb */ color: rgb(161, 88, 233);
/* oklch */ color: oklch(61.3% 0.212 303.9);
Tailwind
colors: {
  custom: {
    50: '#c18bf1',
    500: '#a158e9',
    950: '#000000',
  },
}
SCSS
$custom: #a158e9;
$custom-light: #c18bf1;
$custom-dark: #000000;
JSON
{
  "hex": "#a158e9",
  "rgb": {
    "r": 161,
    "g": 88,
    "b": 233
  },
  "hsl": {
    "h": 270.207,
    "s": 76.72,
    "l": 62.941
  },
  "oklch": {
    "l": 0.61348,
    "c": 0.21222,
    "h": 303.9
  },
  "luminance": 0.2044
}

Semantic roles & 50–950 ramp

primary
#A158E9
secondary
#CEE8B4
accent
#D90D72
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #A158E9

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

Preview Lab → · Contrast checker → · Palette generator →

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