#A157E1#A157E1

#A157E1 is a mid, highly saturated violet. Relative luminance 0.198; OKLCH L 60.7% C 0.205 H 305.9°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#A157E1
RGBrgb(161, 87, 225)
HSLhsl(272, 70%, 61%)
HSVhsv(272, 61%, 88%)
CMYKcmyk(28.4%, 61.3%, 0%, 11.8%)
CIE-LABlab(51.64, 55.15, -58.72)
CIE-LCHlch(51.64, 80.56, 313.21°)
OKLaboklab(60.69% 0.12 -0.1661)
OKLCHoklch(60.69% 0.205 305.9)
XYZxyz(31.6938, 19.8300, 73.3775)
Luminance0.1983 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A157E1 #97E157
analogous
#5C57E1 #A157E1 #E157DC
triadic
#A157E1 #E1A157 #57E1A1
tetradic
#A157E1 #E15C57 #97E157 #57DCE1
square
#A157E1 #E15C57 #97E157 #57DCE1
split-complementary
#A157E1 #DCE157 #57E15C
monochromatic
#641DA1 #8426D5 #A157E1 #BE8BEA #DBBFF4

Accessibility & contrast

On white

4.23
#A157E1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#A157E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A157E1
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A157E1#FFFFFF#000000##000000
##A157E11.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0179E5
Deuteranopia (green-blind)
#397BDE
Tritanopia (blue-blind)
#967394
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #a157e1;
/* rgb */ color: rgb(161, 87, 225);
/* oklch */ color: oklch(60.7% 0.205 305.9);
Tailwind
colors: {
  custom: {
    50: '#c18aeb',
    500: '#a157e1',
    950: '#000000',
  },
}
SCSS
$custom: #a157e1;
$custom-light: #c18aeb;
$custom-dark: #000000;
JSON
{
  "hex": "#a157e1",
  "rgb": {
    "r": 161,
    "g": 87,
    "b": 225
  },
  "hsl": {
    "h": 272.174,
    "s": 69.697,
    "l": 61.176
  },
  "oklch": {
    "l": 0.6069,
    "c": 0.2049,
    "h": 305.9
  },
  "luminance": 0.1983
}

Semantic roles & 50–950 ramp

primary
#A157E1
secondary
#C8E4B0
accent
#D2146C
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #A157E1

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

Preview Lab → · Contrast checker → · Palette generator →

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