#A157CB#A157CB

#A157CB is a mid, vivid violet. Relative luminance 0.187; OKLCH L 59.3% C 0.181 H 311.6°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#A157CB
RGBrgb(161, 87, 203)
HSLhsl(278, 53%, 57%)
HSVhsv(278, 57%, 80%)
CMYKcmyk(20.7%, 57.1%, 0%, 20.4%)
CIE-LABlab(50.34, 50.20, -48.28)
CIE-LCHlch(50.34, 69.65, 316.12°)
OKLaboklab(59.32% 0.1201 -0.1355)
OKLCHoklch(59.32% 0.181 311.6)
XYZxyz(28.8837, 18.7059, 58.5774)
Luminance0.1870 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A157CB #81CB57
analogous
#6757CB #A157CB #CB57BB
triadic
#A157CB #CBA157 #57CBA1
tetradic
#A157CB #CB6757 #81CB57 #57BBCB
square
#A157CB #CB6757 #81CB57 #57BBCB
split-complementary
#A157CB #BBCB57 #57CB67
monochromatic
#602880 #8336AF #A157CB #BB86D9 #D5B4E8

Accessibility & contrast

On white

4.43
#A157CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#A157CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A157CB
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A157CB#FFFFFF#000000##000000
##A157CB1.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3274CF
Deuteranopia (green-blind)
#4E79C8
Tritanopia (blue-blind)
#9C6C89
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #a157cb;
/* rgb */ color: rgb(161, 87, 203);
/* oklch */ color: oklch(59.3% 0.181 311.6);
Tailwind
colors: {
  custom: {
    50: '#c08adb',
    500: '#a157cb',
    950: '#000000',
  },
}
SCSS
$custom: #a157cb;
$custom-light: #c08adb;
$custom-dark: #000000;
JSON
{
  "hex": "#a157cb",
  "rgb": {
    "r": 161,
    "g": 87,
    "b": 203
  },
  "hsl": {
    "h": 278.276,
    "s": 52.727,
    "l": 56.863
  },
  "oklch": {
    "l": 0.59322,
    "c": 0.18105,
    "h": 311.6
  },
  "luminance": 0.18705
}

Semantic roles & 50–950 ramp

primary
#A157CB
secondary
#B8D7A7
accent
#DC4C80
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #A157CB

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

Preview Lab → · Contrast checker → · Palette generator →

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