#A158EB#A158EB

#A158EB is a mid, highly saturated violet. Relative luminance 0.206; OKLCH L 61.5% C 0.214 H 303.5°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#A158EB
RGBrgb(161, 88, 235)
HSLhsl(270, 79%, 63%)
HSVhsv(270, 63%, 92%)
CMYKcmyk(31.5%, 62.6%, 0%, 7.8%)
CIE-LABlab(52.46, 56.98, -63.04)
CIE-LCHlch(52.46, 84.97, 312.11°)
OKLaboklab(61.48% 0.1184 -0.1787)
OKLCHoklch(61.48% 0.214 303.5)
XYZxyz(33.1796, 20.5547, 80.8006)
Luminance0.2056 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A158EB #A2EB58
analogous
#5858EB #A158EB #EB58EB
triadic
#A158EB #EBA158 #58EBA1
tetradic
#A158EB #EB5858 #A2EB58 #58EBEB
square
#A158EB #EB5858 #A2EB58 #58EBEB
split-complementary
#A158EB #EBEB58 #58EB58
monochromatic
#6415B3 #8221E4 #A158EB #C08FF2 #DFC5F8

Accessibility & contrast

On white

4.11
#A158EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#A158EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A158EB
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A158EB#FFFFFF#000000##000000
##A158EB1.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF0
Deuteranopia (green-blind)
#2C7DE8
Tritanopia (blue-blind)
#93779A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #a158eb;
/* rgb */ color: rgb(161, 88, 235);
/* oklch */ color: oklch(61.5% 0.214 303.5);
Tailwind
colors: {
  custom: {
    50: '#c18bf2',
    500: '#a158eb',
    950: '#000000',
  },
}
SCSS
$custom: #a158eb;
$custom-light: #c18bf2;
$custom-dark: #000000;
JSON
{
  "hex": "#a158eb",
  "rgb": {
    "r": 161,
    "g": 88,
    "b": 235
  },
  "hsl": {
    "h": 269.796,
    "s": 78.61,
    "l": 63.333
  },
  "oklch": {
    "l": 0.61482,
    "c": 0.2144,
    "h": 303.5
  },
  "luminance": 0.20555
}

Semantic roles & 50–950 ramp

primary
#A158EB
secondary
#D0EAB5
accent
#DB0B73
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #A158EB

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

Preview Lab → · Contrast checker → · Palette generator →

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