#A157E7#A157E7

#A157E7 is a mid, highly saturated violet. Relative luminance 0.202; OKLCH L 61.1% C 0.211 H 304.5°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#A157E7
RGBrgb(161, 87, 231)
HSLhsl(271, 75%, 62%)
HSVhsv(271, 62%, 91%)
CMYKcmyk(30.3%, 62.3%, 0%, 9.4%)
CIE-LABlab(52.02, 56.54, -61.50)
CIE-LCHlch(52.02, 83.54, 312.60°)
OKLaboklab(61.08% 0.1198 -0.1742)
OKLCHoklch(61.08% 0.211 304.5)
XYZxyz(32.5267, 20.1631, 77.7641)
Luminance0.2016 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A157E7 #9DE757
analogous
#5957E7 #A157E7 #E757E5
triadic
#A157E7 #E7A157 #57E7A1
tetradic
#A157E7 #E75957 #9DE757 #57E5E7
square
#A157E7 #E75957 #9DE757 #57E5E7
split-complementary
#A157E7 #E5E757 #57E759
monochromatic
#6418AB #8321DF #A157E7 #BF8DEF #DDC2F6

Accessibility & contrast

On white

4.17
#A157E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#A157E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A157E7
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A157E7#FFFFFF#000000##000000
##A157E71.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AEB
Deuteranopia (green-blind)
#317CE4
Tritanopia (blue-blind)
#947597
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #a157e7;
/* rgb */ color: rgb(161, 87, 231);
/* oklch */ color: oklch(61.1% 0.211 304.5);
Tailwind
colors: {
  custom: {
    50: '#c18aef',
    500: '#a157e7',
    950: '#000000',
  },
}
SCSS
$custom: #a157e7;
$custom-light: #c18aef;
$custom-dark: #000000;
JSON
{
  "hex": "#a157e7",
  "rgb": {
    "r": 161,
    "g": 87,
    "b": 231
  },
  "hsl": {
    "h": 270.833,
    "s": 75,
    "l": 62.353
  },
  "oklch": {
    "l": 0.61084,
    "c": 0.2114,
    "h": 304.5
  },
  "luminance": 0.20163
}

Semantic roles & 50–950 ramp

primary
#A157E7
secondary
#CCE7B3
accent
#D70E70
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #A157E7

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

Preview Lab → · Contrast checker → · Palette generator →

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