#A158E7#A158E7

#A158E7 is a mid, highly saturated violet. Relative luminance 0.203; OKLCH L 61.2% C 0.210 H 304.4°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#A158E7
RGBrgb(161, 88, 231)
HSLhsl(271, 75%, 63%)
HSVhsv(271, 62%, 91%)
CMYKcmyk(30.3%, 61.9%, 0%, 9.4%)
CIE-LABlab(52.20, 56.04, -61.20)
CIE-LCHlch(52.20, 82.98, 312.48°)
OKLaboklab(61.22% 0.1186 -0.1733)
OKLCHoklch(61.22% 0.21 304.4)
XYZxyz(32.6083, 20.3262, 77.7913)
Luminance0.2033 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A158E7 #9EE758
analogous
#5958E7 #A158E7 #E758E6
triadic
#A158E7 #E7A158 #58E7A1
tetradic
#A158E7 #E75958 #9EE758 #58E6E7
square
#A158E7 #E75958 #9EE758 #58E6E7
split-complementary
#A158E7 #E6E758 #58E759
monochromatic
#6419AC #8322DF #A158E7 #BF8EEF #DDC3F6

Accessibility & contrast

On white

4.15
#A158E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#A158E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A158E7
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A158E7#FFFFFF#000000##000000
##A158E71.004.155.075.07
#FFFFFF4.151.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BEB
Deuteranopia (green-blind)
#337DE4
Tritanopia (blue-blind)
#947698
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #a158e7;
/* rgb */ color: rgb(161, 88, 231);
/* oklch */ color: oklch(61.2% 0.210 304.4);
Tailwind
colors: {
  custom: {
    50: '#c18bef',
    500: '#a158e7',
    950: '#000000',
  },
}
SCSS
$custom: #a158e7;
$custom-light: #c18bef;
$custom-dark: #000000;
JSON
{
  "hex": "#a158e7",
  "rgb": {
    "r": 161,
    "g": 88,
    "b": 231
  },
  "hsl": {
    "h": 270.629,
    "s": 74.869,
    "l": 62.549
  },
  "oklch": {
    "l": 0.61216,
    "c": 0.21005,
    "h": 304.4
  },
  "luminance": 0.20326
}

Semantic roles & 50–950 ramp

primary
#A158E7
secondary
#CDE7B3
accent
#D70E71
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #A158E7

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

Preview Lab → · Contrast checker → · Palette generator →

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