#A158E5#A158E5

#A158E5 is a mid, highly saturated violet. Relative luminance 0.202; OKLCH L 61.1% C 0.208 H 304.8°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#A158E5
RGBrgb(161, 88, 229)
HSLhsl(271, 73%, 62%)
HSVhsv(271, 62%, 90%)
CMYKcmyk(29.7%, 61.6%, 0%, 10.2%)
CIE-LABlab(52.08, 55.58, -60.28)
CIE-LCHlch(52.08, 81.99, 312.68°)
OKLaboklab(61.08% 0.1187 -0.1706)
OKLCHoklch(61.08% 0.208 304.8)
XYZxyz(32.3274, 20.2138, 76.3121)
Luminance0.2021 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A158E5 #9CE558
analogous
#5B58E5 #A158E5 #E558E2
triadic
#A158E5 #E5A158 #58E5A1
tetradic
#A158E5 #E55B58 #9CE558 #58E2E5
square
#A158E5 #E55B58 #9CE558 #58E2E5
split-complementary
#A158E5 #E2E558 #58E55B
monochromatic
#641AA8 #8323DD #A158E5 #BF8DED #DDC2F5

Accessibility & contrast

On white

4.16
#A158E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#A158E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A158E5
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A158E5#FFFFFF#000000##000000
##A158E51.004.165.045.04
#FFFFFF4.161.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AE9
Deuteranopia (green-blind)
#367CE2
Tritanopia (blue-blind)
#957597
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #a158e5;
/* rgb */ color: rgb(161, 88, 229);
/* oklch */ color: oklch(61.1% 0.208 304.8);
Tailwind
colors: {
  custom: {
    50: '#c18bee',
    500: '#a158e5',
    950: '#000000',
  },
}
SCSS
$custom: #a158e5;
$custom-light: #c18bee;
$custom-dark: #000000;
JSON
{
  "hex": "#a158e5",
  "rgb": {
    "r": 161,
    "g": 88,
    "b": 229
  },
  "hsl": {
    "h": 271.064,
    "s": 73.057,
    "l": 62.157
  },
  "oklch": {
    "l": 0.61084,
    "c": 0.20787,
    "h": 304.8
  },
  "luminance": 0.20214
}

Semantic roles & 50–950 ramp

primary
#A158E5
secondary
#CBE6B3
accent
#D5106F
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #A158E5

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

Preview Lab → · Contrast checker → · Palette generator →

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