#A158DF#A158DF

#A158DF is a mid, highly saturated violet. Relative luminance 0.199; OKLCH L 60.7% C 0.201 H 306.2°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#A158DF
RGBrgb(161, 88, 223)
HSLhsl(272, 68%, 61%)
HSVhsv(272, 61%, 87%)
CMYKcmyk(27.8%, 60.5%, 0%, 12.5%)
CIE-LABlab(51.71, 54.19, -57.49)
CIE-LCHlch(51.71, 79.00, 313.31°)
OKLaboklab(60.7% 0.1189 -0.1624)
OKLCHoklch(60.7% 0.201 306.2)
XYZxyz(31.5041, 19.8845, 71.9762)
Luminance0.1988 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A158DF #96DF58
analogous
#5D58DF #A158DF #DF58DA
triadic
#A158DF #DFA158 #58DFA1
tetradic
#A158DF #DF5D58 #96DF58 #58DADF
square
#A158DF #DF5D58 #96DF58 #58DADF
split-complementary
#A158DF #DADF58 #58DF5D
monochromatic
#641E9E #8428D2 #A158DF #BE8BE9 #DBBFF3

Accessibility & contrast

On white

4.22
#A158DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#A158DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A158DF
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A158DF#FFFFFF#000000##000000
##A158DF1.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#1179E3
Deuteranopia (green-blind)
#3D7CDC
Tritanopia (blue-blind)
#977393
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #a158df;
/* rgb */ color: rgb(161, 88, 223);
/* oklch */ color: oklch(60.7% 0.201 306.2);
Tailwind
colors: {
  custom: {
    50: '#c18bea',
    500: '#a158df',
    950: '#000000',
  },
}
SCSS
$custom: #a158df;
$custom-light: #c18bea;
$custom-dark: #000000;
JSON
{
  "hex": "#a158df",
  "rgb": {
    "r": 161,
    "g": 88,
    "b": 223
  },
  "hsl": {
    "h": 272.444,
    "s": 67.839,
    "l": 60.98
  },
  "oklch": {
    "l": 0.60696,
    "c": 0.20133,
    "h": 306.2
  },
  "luminance": 0.19884
}

Semantic roles & 50–950 ramp

primary
#A158DF
secondary
#C7E3B0
accent
#D0166B
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #A158DF

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

Preview Lab → · Contrast checker → · Palette generator →

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