#A158F1#A158F1

#A158F1 is a mid, highly saturated violet. Relative luminance 0.209; OKLCH L 61.9% C 0.221 H 302.3°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#A158F1
RGBrgb(161, 88, 241)
HSLhsl(269, 85%, 65%)
HSVhsv(269, 63%, 95%)
CMYKcmyk(33.2%, 63.5%, 0%, 5.5%)
CIE-LABlab(52.85, 58.39, -65.77)
CIE-LCHlch(52.85, 87.95, 311.60°)
OKLaboklab(61.89% 0.118 -0.1868)
OKLCHoklch(61.89% 0.221 302.3)
XYZxyz(34.0611, 20.9073, 85.4431)
Luminance0.2091 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A158F1 #A8F158
analogous
#585CF1 #A158F1 #ED58F1
triadic
#A158F1 #F1A158 #58F1A1
tetradic
#A158F1 #F1585C #A8F158 #58F1ED
square
#A158F1 #F1585C #A8F158 #58F1ED
split-complementary
#A158F1 #F1ED58 #5CF158
monochromatic
#6310BF #8120EC #A158F1 #C190F6 #E1C9FA

Accessibility & contrast

On white

4.05
#A158F1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#A158F1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A158F1
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A158F1#FFFFFF#000000##000000
##A158F11.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF6
Deuteranopia (green-blind)
#207EEE
Tritanopia (blue-blind)
#91799D
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #a158f1;
/* rgb */ color: rgb(161, 88, 241);
/* oklch */ color: oklch(61.9% 0.221 302.3);
Tailwind
colors: {
  custom: {
    50: '#c28bf6',
    500: '#a158f1',
    950: '#000000',
  },
}
SCSS
$custom: #a158f1;
$custom-light: #c28bf6;
$custom-dark: #000000;
JSON
{
  "hex": "#a158f1",
  "rgb": {
    "r": 161,
    "g": 88,
    "b": 241
  },
  "hsl": {
    "h": 268.627,
    "s": 84.53,
    "l": 64.51
  },
  "oklch": {
    "l": 0.61887,
    "c": 0.22092,
    "h": 302.3
  },
  "luminance": 0.20907
}

Semantic roles & 50–950 ramp

primary
#A158F1
secondary
#D4EDB8
accent
#E10578
background
#FCF8FF
surface
#F8F0FF
border
#D1CBD7
text
#130C17
muted
#827D85

Preview Lab

Preview with #A158F1

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

Preview Lab → · Contrast checker → · Palette generator →

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