#A158E4#A158E4

#A158E4 is a mid, highly saturated violet. Relative luminance 0.202; OKLCH L 61.0% C 0.207 H 305.1°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#A158E4
RGBrgb(161, 88, 228)
HSLhsl(271, 72%, 62%)
HSVhsv(271, 61%, 89%)
CMYKcmyk(29.4%, 61.4%, 0%, 10.6%)
CIE-LABlab(52.02, 55.35, -59.81)
CIE-LCHlch(52.02, 81.49, 312.78°)
OKLaboklab(61.02% 0.1188 -0.1693)
OKLCHoklch(61.02% 0.207 305.1)
XYZxyz(32.1882, 20.1581, 75.5789)
Luminance0.2016 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A158E4 #9BE458
analogous
#5B58E4 #A158E4 #E458E1
triadic
#A158E4 #E4A158 #58E4A1
tetradic
#A158E4 #E45B58 #9BE458 #58E1E4
square
#A158E4 #E45B58 #9BE458 #58E1E4
split-complementary
#A158E4 #E1E458 #58E45B
monochromatic
#641BA7 #8323DB #A158E4 #BF8DED #DCC1F5

Accessibility & contrast

On white

4.17
#A158E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#A158E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A158E4
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A158E4#FFFFFF#000000##000000
##A158E41.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AE8
Deuteranopia (green-blind)
#377CE1
Tritanopia (blue-blind)
#957596
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #a158e4;
/* rgb */ color: rgb(161, 88, 228);
/* oklch */ color: oklch(61.0% 0.207 305.1);
Tailwind
colors: {
  custom: {
    50: '#c18bed',
    500: '#a158e4',
    950: '#000000',
  },
}
SCSS
$custom: #a158e4;
$custom-light: #c18bed;
$custom-dark: #000000;
JSON
{
  "hex": "#a158e4",
  "rgb": {
    "r": 161,
    "g": 88,
    "b": 228
  },
  "hsl": {
    "h": 271.286,
    "s": 72.165,
    "l": 61.961
  },
  "oklch": {
    "l": 0.61019,
    "c": 0.20678,
    "h": 305.1
  },
  "luminance": 0.20158
}

Semantic roles & 50–950 ramp

primary
#A158E4
secondary
#CBE6B2
accent
#D4116F
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #A158E4

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

Preview Lab → · Contrast checker → · Palette generator →

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