#A252E1#A252E1

#A252E1 is a mid, highly saturated violet. Relative luminance 0.192; OKLCH L 60.2% C 0.212 H 306.8°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#A252E1
RGBrgb(162, 82, 225)
HSLhsl(274, 70%, 60%)
HSVhsv(274, 64%, 88%)
CMYKcmyk(28%, 63.6%, 0%, 11.8%)
CIE-LABlab(50.87, 57.82, -59.97)
CIE-LCHlch(50.87, 83.30, 313.96°)
OKLaboklab(60.15% 0.1271 -0.1697)
OKLCHoklch(60.15% 0.212 306.8)
XYZxyz(31.5053, 19.1526, 73.2567)
Luminance0.1915 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A252E1 #91E152
analogous
#5A52E1 #A252E1 #E152D9
triadic
#A252E1 #E1A252 #52E1A2
tetradic
#A252E1 #E15A52 #91E152 #52D9E1
square
#A252E1 #E15A52 #91E152 #52D9E1
split-complementary
#A252E1 #D9E152 #52E15A
monochromatic
#641B9D #8524D1 #A252E1 #BE86EA #DABAF3

Accessibility & contrast

On white

4.35
#A252E1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#A252E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A252E1
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A252E1#FFFFFF#000000##000000
##A252E11.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076E5
Deuteranopia (green-blind)
#337ADE
Tritanopia (blue-blind)
#987092
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #a252e1;
/* rgb */ color: rgb(162, 82, 225);
/* oklch */ color: oklch(60.2% 0.212 306.8);
Tailwind
colors: {
  custom: {
    50: '#c287eb',
    500: '#a252e1',
    950: '#000000',
  },
}
SCSS
$custom: #a252e1;
$custom-light: #c287eb;
$custom-dark: #000000;
JSON
{
  "hex": "#a252e1",
  "rgb": {
    "r": 162,
    "g": 82,
    "b": 225
  },
  "hsl": {
    "h": 273.566,
    "s": 70.443,
    "l": 60.196
  },
  "oklch": {
    "l": 0.60153,
    "c": 0.21199,
    "h": 306.8
  },
  "luminance": 0.19152
}

Semantic roles & 50–950 ramp

primary
#A252E1
secondary
#C4E3AC
accent
#D21367
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #A252E1

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

Preview Lab → · Contrast checker → · Palette generator →

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