#A157E8#A157E8

#A157E8 is a mid, highly saturated violet. Relative luminance 0.202; OKLCH L 61.2% C 0.212 H 304.3°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#A157E8
RGBrgb(161, 87, 232)
HSLhsl(271, 76%, 63%)
HSVhsv(271, 63%, 91%)
CMYKcmyk(30.6%, 62.5%, 0%, 9%)
CIE-LABlab(52.08, 56.77, -61.96)
CIE-LCHlch(52.08, 84.03, 312.50°)
OKLaboklab(61.15% 0.1197 -0.1756)
OKLCHoklch(61.15% 0.212 304.3)
XYZxyz(32.6684, 20.2198, 78.5101)
Luminance0.2022 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A157E8 #9EE857
analogous
#5957E8 #A157E8 #E857E6
triadic
#A157E8 #E8A157 #57E8A1
tetradic
#A157E8 #E85957 #9EE857 #57E6E8
square
#A157E8 #E85957 #9EE857 #57E6E8
split-complementary
#A157E8 #E6E857 #57E859
monochromatic
#6418AD #8321E1 #A157E8 #BF8DEF #DDC3F7

Accessibility & contrast

On white

4.16
#A157E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#A157E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A157E8
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A157E8#FFFFFF#000000##000000
##A157E81.004.165.045.04
#FFFFFF4.161.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AED
Deuteranopia (green-blind)
#2F7CE5
Tritanopia (blue-blind)
#947698
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #a157e8;
/* rgb */ color: rgb(161, 87, 232);
/* oklch */ color: oklch(61.2% 0.212 304.3);
Tailwind
colors: {
  custom: {
    50: '#c18af0',
    500: '#a157e8',
    950: '#000000',
  },
}
SCSS
$custom: #a157e8;
$custom-light: #c18af0;
$custom-dark: #000000;
JSON
{
  "hex": "#a157e8",
  "rgb": {
    "r": 161,
    "g": 87,
    "b": 232
  },
  "hsl": {
    "h": 270.621,
    "s": 75.916,
    "l": 62.549
  },
  "oklch": {
    "l": 0.6115,
    "c": 0.21248,
    "h": 304.3
  },
  "luminance": 0.2022
}

Semantic roles & 50–950 ramp

primary
#A157E8
secondary
#CDE8B3
accent
#D80D71
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #A157E8

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

Preview Lab → · Contrast checker → · Palette generator →

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