#A152E7#A152E7

#A152E7 is a mid, highly saturated violet. Relative luminance 0.194; OKLCH L 60.4% C 0.218 H 305.1°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#A152E7
RGBrgb(161, 82, 231)
HSLhsl(272, 76%, 61%)
HSVhsv(272, 65%, 91%)
CMYKcmyk(30.3%, 64.5%, 0%, 9.4%)
CIE-LABlab(51.13, 58.97, -62.93)
CIE-LCHlch(51.13, 86.24, 313.14°)
OKLaboklab(60.44% 0.1254 -0.1784)
OKLCHoklch(60.44% 0.218 305.1)
XYZxyz(32.1359, 19.3814, 77.6338)
Luminance0.1938 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A152E7 #98E752
analogous
#5752E7 #A152E7 #E752E3
triadic
#A152E7 #E7A152 #52E7A1
tetradic
#A152E7 #E75752 #98E752 #52E3E7
square
#A152E7 #E75752 #98E752 #52E3E7
split-complementary
#A152E7 #E3E752 #52E757
monochromatic
#6417A7 #841FDD #A152E7 #BE88EE #DBBDF6

Accessibility & contrast

On white

4.31
#A152E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#A152E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A152E7
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A152E7#FFFFFF#000000##000000
##A152E71.004.314.884.88
#FFFFFF4.311.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078EC
Deuteranopia (green-blind)
#287AE4
Tritanopia (blue-blind)
#947296
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #a152e7;
/* rgb */ color: rgb(161, 82, 231);
/* oklch */ color: oklch(60.4% 0.218 305.1);
Tailwind
colors: {
  custom: {
    50: '#c187ef',
    500: '#a152e7',
    950: '#000000',
  },
}
SCSS
$custom: #a152e7;
$custom-light: #c187ef;
$custom-dark: #000000;
JSON
{
  "hex": "#a152e7",
  "rgb": {
    "r": 161,
    "g": 82,
    "b": 231
  },
  "hsl": {
    "h": 271.812,
    "s": 75.635,
    "l": 61.373
  },
  "oklch": {
    "l": 0.6044,
    "c": 0.21805,
    "h": 305.1
  },
  "luminance": 0.19381
}

Semantic roles & 50–950 ramp

primary
#A152E7
secondary
#C9E6AF
accent
#D80E6D
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #A152E7

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

Preview Lab → · Contrast checker → · Palette generator →

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