#A252E7#A252E7

#A252E7 is a mid, highly saturated violet. Relative luminance 0.195; OKLCH L 60.6% C 0.218 H 305.5°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#A252E7
RGBrgb(162, 82, 231)
HSLhsl(272, 76%, 61%)
HSVhsv(272, 65%, 91%)
CMYKcmyk(29.9%, 64.5%, 0%, 9.4%)
CIE-LABlab(51.25, 59.18, -62.73)
CIE-LCHlch(51.25, 86.24, 313.33°)
OKLaboklab(60.55% 0.1267 -0.1778)
OKLCHoklch(60.55% 0.218 305.5)
XYZxyz(32.3382, 19.4857, 77.6433)
Luminance0.1948 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A252E7 #97E752
analogous
#5852E7 #A252E7 #E752E2
triadic
#A252E7 #E7A252 #52E7A2
tetradic
#A252E7 #E75852 #97E752 #52E2E7
square
#A252E7 #E75852 #97E752 #52E2E7
split-complementary
#A252E7 #E2E752 #52E758
monochromatic
#6517A7 #851FDD #A252E7 #BF88EE #DCBDF6

Accessibility & contrast

On white

4.29
#A252E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#A252E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A252E7
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A252E7#FFFFFF#000000##000000
##A252E71.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078EC
Deuteranopia (green-blind)
#2A7AE4
Tritanopia (blue-blind)
#967296
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #a252e7;
/* rgb */ color: rgb(162, 82, 231);
/* oklch */ color: oklch(60.6% 0.218 305.5);
Tailwind
colors: {
  custom: {
    50: '#c287ef',
    500: '#a252e7',
    950: '#000000',
  },
}
SCSS
$custom: #a252e7;
$custom-light: #c287ef;
$custom-dark: #000000;
JSON
{
  "hex": "#a252e7",
  "rgb": {
    "r": 162,
    "g": 82,
    "b": 231
  },
  "hsl": {
    "h": 272.215,
    "s": 75.635,
    "l": 61.373
  },
  "oklch": {
    "l": 0.60553,
    "c": 0.21829,
    "h": 305.5
  },
  "luminance": 0.19485
}

Semantic roles & 50–950 ramp

primary
#A252E7
secondary
#C8E6AF
accent
#D80E6B
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #A252E7

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

Preview Lab → · Contrast checker → · Palette generator →

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