#A157DB#A157DB

#A157DB is a mid, vivid violet. Relative luminance 0.195; OKLCH L 60.3% C 0.198 H 307.3°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#A157DB
RGBrgb(161, 87, 219)
HSLhsl(274, 65%, 60%)
HSVhsv(274, 60%, 86%)
CMYKcmyk(26.5%, 60.3%, 0%, 14.1%)
CIE-LABlab(51.28, 53.78, -55.91)
CIE-LCHlch(51.28, 77.58, 313.89°)
OKLaboklab(60.31% 0.1202 -0.1578)
OKLCHoklch(60.31% 0.198 307.3)
XYZxyz(30.8897, 19.5083, 69.1423)
Luminance0.1951 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A157DB #91DB57
analogous
#5F57DB #A157DB #DB57D3
triadic
#A157DB #DBA157 #57DBA1
tetradic
#A157DB #DB5F57 #91DB57 #57D3DB
square
#A157DB #DB5F57 #91DB57 #57D3DB
split-complementary
#A157DB #D3DB57 #57DB5F
monochromatic
#632097 #842BCA #A157DB #BD89E6 #D9BCF1

Accessibility & contrast

On white

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

On black

4.90
#A157DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A157DB
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A157DB#FFFFFF#000000##000000
##A157DB1.004.284.904.90
#FFFFFF4.281.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#1977DF
Deuteranopia (green-blind)
#407BD8
Tritanopia (blue-blind)
#987191
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #a157db;
/* rgb */ color: rgb(161, 87, 219);
/* oklch */ color: oklch(60.3% 0.198 307.3);
Tailwind
colors: {
  custom: {
    50: '#c08ae7',
    500: '#a157db',
    950: '#000000',
  },
}
SCSS
$custom: #a157db;
$custom-light: #c08ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#a157db",
  "rgb": {
    "r": 161,
    "g": 87,
    "b": 219
  },
  "hsl": {
    "h": 273.636,
    "s": 64.706,
    "l": 60
  },
  "oklch": {
    "l": 0.60305,
    "c": 0.19839,
    "h": 307.3
  },
  "luminance": 0.19508
}

Semantic roles & 50–950 ramp

primary
#A157DB
secondary
#C4E0AD
accent
#E8408A
background
#FCF8FE
surface
#F8F0FC
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #A157DB

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

Preview Lab → · Contrast checker → · Palette generator →

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