#A157C8#A157C8

#A157C8 is a mid, vivid violet. Relative luminance 0.186; OKLCH L 59.1% C 0.178 H 312.4°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#A157C8
RGBrgb(161, 87, 200)
HSLhsl(279, 51%, 56%)
HSVhsv(279, 57%, 78%)
CMYKcmyk(19.5%, 56.5%, 0%, 21.6%)
CIE-LABlab(50.17, 49.55, -46.83)
CIE-LCHlch(50.17, 68.17, 316.62°)
OKLaboklab(59.15% 0.12 -0.1312)
OKLCHoklch(59.15% 0.178 312.4)
XYZxyz(28.5296, 18.5643, 56.7128)
Luminance0.1856 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A157C8 #7EC857
analogous
#6957C8 #A157C8 #C857B7
triadic
#A157C8 #C8A157 #57C8A1
tetradic
#A157C8 #C86957 #7EC857 #57B7C8
square
#A157C8 #C86957 #7EC857 #57B7C8
split-complementary
#A157C8 #B7C857 #57C869
monochromatic
#5F297C #8338AA #A157C8 #BB85D7 #D5B3E6

Accessibility & contrast

On white

4.46
#A157C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#A157C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A157C8
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A157C8#FFFFFF#000000##000000
##A157C81.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3674CC
Deuteranopia (green-blind)
#5179C5
Tritanopia (blue-blind)
#9D6B87
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #a157c8;
/* rgb */ color: rgb(161, 87, 200);
/* oklch */ color: oklch(59.1% 0.178 312.4);
Tailwind
colors: {
  custom: {
    50: '#c08ad9',
    500: '#a157c8',
    950: '#000000',
  },
}
SCSS
$custom: #a157c8;
$custom-light: #c08ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#a157c8",
  "rgb": {
    "r": 161,
    "g": 87,
    "b": 200
  },
  "hsl": {
    "h": 279.292,
    "s": 50.673,
    "l": 56.275
  },
  "oklch": {
    "l": 0.59145,
    "c": 0.17781,
    "h": 312.4
  },
  "luminance": 0.18564
}

Semantic roles & 50–950 ramp

primary
#A157C8
secondary
#B6D5A6
accent
#DA4E7E
background
#FCF8FD
surface
#F8F0FA
border
#D1CBD3
text
#120C15
muted
#817D83

Preview Lab

Preview with #A157C8

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

Preview Lab → · Contrast checker → · Palette generator →

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