#A157EB#A157EB

#A157EB is a mid, highly saturated violet. Relative luminance 0.204; OKLCH L 61.4% C 0.216 H 303.6°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#A157EB
RGBrgb(161, 87, 235)
HSLhsl(270, 79%, 63%)
HSVhsv(270, 63%, 92%)
CMYKcmyk(31.5%, 63%, 0%, 7.8%)
CIE-LABlab(52.28, 57.47, -63.33)
CIE-LCHlch(52.28, 85.52, 312.22°)
OKLaboklab(61.35% 0.1195 -0.1796)
OKLCHoklch(61.35% 0.216 303.6)
XYZxyz(33.0981, 20.3917, 80.7735)
Luminance0.2039 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A157EB #A1EB57
analogous
#5757EB #A157EB #EB57EB
triadic
#A157EB #EBA157 #57EBA1
tetradic
#A157EB #EB5757 #A1EB57 #57EBEB
square
#A157EB #EB5757 #A1EB57 #57EBEB
split-complementary
#A157EB #EBEB57 #57EB57
monochromatic
#6415B2 #8220E4 #A157EB #C08EF2 #DEC4F8

Accessibility & contrast

On white

4.14
#A157EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#A157EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A157EB
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A157EB#FFFFFF#000000##000000
##A157EB1.004.145.085.08
#FFFFFF4.141.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF0
Deuteranopia (green-blind)
#2A7CE8
Tritanopia (blue-blind)
#937799
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #a157eb;
/* rgb */ color: rgb(161, 87, 235);
/* oklch */ color: oklch(61.4% 0.216 303.6);
Tailwind
colors: {
  custom: {
    50: '#c18af2',
    500: '#a157eb',
    950: '#000000',
  },
}
SCSS
$custom: #a157eb;
$custom-light: #c18af2;
$custom-dark: #000000;
JSON
{
  "hex": "#a157eb",
  "rgb": {
    "r": 161,
    "g": 87,
    "b": 235
  },
  "hsl": {
    "h": 270,
    "s": 78.723,
    "l": 63.137
  },
  "oklch": {
    "l": 0.6135,
    "c": 0.21573,
    "h": 303.6
  },
  "luminance": 0.20392
}

Semantic roles & 50–950 ramp

primary
#A157EB
secondary
#CFE9B4
accent
#DB0A73
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #A157EB

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

Preview Lab → · Contrast checker → · Palette generator →

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