#A158EA#A158EA

#A158EA is a mid, highly saturated violet. Relative luminance 0.205; OKLCH L 61.4% C 0.213 H 303.7°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#A158EA
RGBrgb(161, 88, 234)
HSLhsl(270, 78%, 63%)
HSVhsv(270, 62%, 92%)
CMYKcmyk(31.2%, 62.4%, 0%, 8.2%)
CIE-LABlab(52.39, 56.74, -62.58)
CIE-LCHlch(52.39, 84.48, 312.20°)
OKLaboklab(61.42% 0.1185 -0.1774)
OKLCHoklch(61.42% 0.213 303.7)
XYZxyz(33.0356, 20.4971, 80.0419)
Luminance0.2050 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A158EA #A1EA58
analogous
#5858EA #A158EA #EA58EA
triadic
#A158EA #EAA158 #58EAA1
tetradic
#A158EA #EA5858 #A1EA58 #58EAEA
square
#A158EA #EA5858 #A1EA58 #58EAEA
split-complementary
#A158EA #EAEA58 #58EA58
monochromatic
#6416B1 #8222E3 #A158EA #C08EF1 #DEC5F8

Accessibility & contrast

On white

4.12
#A158EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#A158EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A158EA
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A158EA#FFFFFF#000000##000000
##A158EA1.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BEF
Deuteranopia (green-blind)
#2E7DE7
Tritanopia (blue-blind)
#937799
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #a158ea;
/* rgb */ color: rgb(161, 88, 234);
/* oklch */ color: oklch(61.4% 0.213 303.7);
Tailwind
colors: {
  custom: {
    50: '#c18bf1',
    500: '#a158ea',
    950: '#000000',
  },
}
SCSS
$custom: #a158ea;
$custom-light: #c18bf1;
$custom-dark: #000000;
JSON
{
  "hex": "#a158ea",
  "rgb": {
    "r": 161,
    "g": 88,
    "b": 234
  },
  "hsl": {
    "h": 270,
    "s": 77.66,
    "l": 63.137
  },
  "oklch": {
    "l": 0.61415,
    "c": 0.21331,
    "h": 303.7
  },
  "luminance": 0.20497
}

Semantic roles & 50–950 ramp

primary
#A158EA
secondary
#CFE9B5
accent
#DA0C73
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #A158EA

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

Preview Lab → · Contrast checker → · Palette generator →

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