#A158E3#A158E3

#A158E3 is a mid, highly saturated violet. Relative luminance 0.201; OKLCH L 61.0% C 0.206 H 305.3°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#A158E3
RGBrgb(161, 88, 227)
HSLhsl(272, 71%, 62%)
HSVhsv(272, 61%, 89%)
CMYKcmyk(29.1%, 61.2%, 0%, 11%)
CIE-LABlab(51.95, 55.11, -59.35)
CIE-LCHlch(51.95, 80.99, 312.88°)
OKLaboklab(60.95% 0.1188 -0.1679)
OKLCHoklch(60.95% 0.206 305.3)
XYZxyz(32.0498, 20.1028, 74.8499)
Luminance0.2010 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A158E3 #9AE358
analogous
#5C58E3 #A158E3 #E358DF
triadic
#A158E3 #E3A158 #58E3A1
tetradic
#A158E3 #E35C58 #9AE358 #58DFE3
square
#A158E3 #E35C58 #9AE358 #58DFE3
split-complementary
#A158E3 #DFE358 #58E35C
monochromatic
#641CA5 #8324D9 #A158E3 #BF8CEC #DCC1F5

Accessibility & contrast

On white

4.18
#A158E3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#A158E3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A158E3
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A158E3#FFFFFF#000000##000000
##A158E31.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AE7
Deuteranopia (green-blind)
#387CE0
Tritanopia (blue-blind)
#957595
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #a158e3;
/* rgb */ color: rgb(161, 88, 227);
/* oklch */ color: oklch(61.0% 0.206 305.3);
Tailwind
colors: {
  custom: {
    50: '#c18bec',
    500: '#a158e3',
    950: '#000000',
  },
}
SCSS
$custom: #a158e3;
$custom-light: #c18bec;
$custom-dark: #000000;
JSON
{
  "hex": "#a158e3",
  "rgb": {
    "r": 161,
    "g": 88,
    "b": 227
  },
  "hsl": {
    "h": 271.511,
    "s": 71.282,
    "l": 61.765
  },
  "oklch": {
    "l": 0.60954,
    "c": 0.2057,
    "h": 305.3
  },
  "luminance": 0.20103
}

Semantic roles & 50–950 ramp

primary
#A158E3
secondary
#CAE5B2
accent
#D3126E
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #A158E3

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

Preview Lab → · Contrast checker → · Palette generator →

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