#A252E4#A252E4

#A252E4 is a mid, highly saturated violet. Relative luminance 0.193; OKLCH L 60.4% C 0.215 H 306.1°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#A252E4
RGBrgb(162, 82, 228)
HSLhsl(273, 73%, 61%)
HSVhsv(273, 64%, 89%)
CMYKcmyk(28.9%, 64%, 0%, 10.6%)
CIE-LABlab(51.06, 58.50, -61.35)
CIE-LCHlch(51.06, 84.77, 313.64°)
OKLaboklab(60.35% 0.1269 -0.1737)
OKLCHoklch(60.35% 0.215 306.1)
XYZxyz(31.9182, 19.3177, 75.4309)
Luminance0.1932 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A252E4 #94E452
analogous
#5952E4 #A252E4 #E452DD
triadic
#A252E4 #E4A252 #52E4A2
tetradic
#A252E4 #E45952 #94E452 #52DDE4
square
#A252E4 #E45952 #94E452 #52DDE4
split-complementary
#A252E4 #DDE452 #52E459
monochromatic
#6419A2 #8522D7 #A252E4 #BE87EC #DBBCF5

Accessibility & contrast

On white

4.32
#A252E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#A252E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A252E4
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A252E4#FFFFFF#000000##000000
##A252E41.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077E8
Deuteranopia (green-blind)
#2F7AE1
Tritanopia (blue-blind)
#977194
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #a252e4;
/* rgb */ color: rgb(162, 82, 228);
/* oklch */ color: oklch(60.4% 0.215 306.1);
Tailwind
colors: {
  custom: {
    50: '#c287ed',
    500: '#a252e4',
    950: '#000000',
  },
}
SCSS
$custom: #a252e4;
$custom-light: #c287ed;
$custom-dark: #000000;
JSON
{
  "hex": "#a252e4",
  "rgb": {
    "r": 162,
    "g": 82,
    "b": 228
  },
  "hsl": {
    "h": 272.877,
    "s": 73,
    "l": 60.784
  },
  "oklch": {
    "l": 0.60352,
    "c": 0.21514,
    "h": 306.1
  },
  "luminance": 0.19317
}

Semantic roles & 50–950 ramp

primary
#A252E4
secondary
#C6E5AD
accent
#D51069
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #A252E4

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

Preview Lab → · Contrast checker → · Palette generator →

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