#A157DC#A157DC

#A157DC is a mid, vivid violet. Relative luminance 0.196; OKLCH L 60.4% C 0.199 H 307.1°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#A157DC
RGBrgb(161, 87, 220)
HSLhsl(273, 66%, 60%)
HSVhsv(273, 60%, 86%)
CMYKcmyk(26.8%, 60.5%, 0%, 13.7%)
CIE-LABlab(51.34, 54.01, -56.38)
CIE-LCHlch(51.34, 78.07, 313.77°)
OKLaboklab(60.37% 0.1202 -0.1592)
OKLCHoklch(60.37% 0.199 307.1)
XYZxyz(31.0217, 19.5611, 69.8377)
Luminance0.1956 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A157DC #92DC57
analogous
#5E57DC #A157DC #DC57D5
triadic
#A157DC #DCA157 #57DCA1
tetradic
#A157DC #DC5E57 #92DC57 #57D5DC
square
#A157DC #DC5E57 #92DC57 #57D5DC
split-complementary
#A157DC #D5DC57 #57DC5E
monochromatic
#632099 #842ACB #A157DC #BD8AE7 #DABCF1

Accessibility & contrast

On white

4.28
#A157DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#A157DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A157DC
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A157DC#FFFFFF#000000##000000
##A157DC1.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#1678E0
Deuteranopia (green-blind)
#3F7BD9
Tritanopia (blue-blind)
#987191
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #a157dc;
/* rgb */ color: rgb(161, 87, 220);
/* oklch */ color: oklch(60.4% 0.199 307.1);
Tailwind
colors: {
  custom: {
    50: '#c18ae7',
    500: '#a157dc',
    950: '#000000',
  },
}
SCSS
$custom: #a157dc;
$custom-light: #c18ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#a157dc",
  "rgb": {
    "r": 161,
    "g": 87,
    "b": 220
  },
  "hsl": {
    "h": 273.383,
    "s": 65.517,
    "l": 60.196
  },
  "oklch": {
    "l": 0.60369,
    "c": 0.19948,
    "h": 307.1
  },
  "luminance": 0.19561
}

Semantic roles & 50–950 ramp

primary
#A157DC
secondary
#C5E1AE
accent
#CD1869
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #A157DC

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

Preview Lab → · Contrast checker → · Palette generator →

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