#A252E2#A252E2

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

Color values

HEX#A252E2
RGBrgb(162, 82, 226)
HSLhsl(273, 71%, 60%)
HSVhsv(273, 64%, 89%)
CMYKcmyk(28.3%, 63.7%, 0%, 11.4%)
CIE-LABlab(50.93, 58.05, -60.43)
CIE-LCHlch(50.93, 83.79, 313.85°)
OKLaboklab(60.22% 0.127 -0.171)
OKLCHoklch(60.22% 0.213 306.6)
XYZxyz(31.6421, 19.2073, 73.9772)
Luminance0.1921 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A252E2 #92E252
analogous
#5A52E2 #A252E2 #E252DA
triadic
#A252E2 #E2A252 #52E2A2
tetradic
#A252E2 #E25A52 #92E252 #52DAE2
square
#A252E2 #E25A52 #92E252 #52DAE2
split-complementary
#A252E2 #DAE252 #52E25A
monochromatic
#641B9F #8523D3 #A252E2 #BE86EB #DABBF4

Accessibility & contrast

On white

4.34
#A252E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#A252E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A252E2
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A252E2#FFFFFF#000000##000000
##A252E21.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077E6
Deuteranopia (green-blind)
#327ADF
Tritanopia (blue-blind)
#977093
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #a252e2;
/* rgb */ color: rgb(162, 82, 226);
/* oklch */ color: oklch(60.2% 0.213 306.6);
Tailwind
colors: {
  custom: {
    50: '#c287ec',
    500: '#a252e2',
    950: '#000000',
  },
}
SCSS
$custom: #a252e2;
$custom-light: #c287ec;
$custom-dark: #000000;
JSON
{
  "hex": "#a252e2",
  "rgb": {
    "r": 162,
    "g": 82,
    "b": 226
  },
  "hsl": {
    "h": 273.333,
    "s": 71.287,
    "l": 60.392
  },
  "oklch": {
    "l": 0.60219,
    "c": 0.21304,
    "h": 306.6
  },
  "luminance": 0.19207
}

Semantic roles & 50–950 ramp

primary
#A252E2
secondary
#C5E3AC
accent
#D31268
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #A252E2

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

Preview Lab → · Contrast checker → · Palette generator →

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