#A252C8#A252C8

#A252C8 is a mid, vivid purple. Relative luminance 0.179; OKLCH L 58.6% C 0.186 H 313.4°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#A252C8
RGBrgb(162, 82, 200)
HSLhsl(281, 52%, 55%)
HSVhsv(281, 59%, 78%)
CMYKcmyk(19%, 59%, 0%, 21.6%)
CIE-LABlab(49.36, 52.32, -48.12)
CIE-LCHlch(49.36, 71.08, 317.40°)
OKLaboklab(58.58% 0.1276 -0.1349)
OKLCHoklch(58.58% 0.186 313.4)
XYZxyz(28.3411, 17.8869, 56.5919)
Luminance0.1789 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A252C8 #78C852
analogous
#6752C8 #A252C8 #C852B3
triadic
#A252C8 #C8A252 #52C8A2
tetradic
#A252C8 #C86752 #78C852 #52B3C8
square
#A252C8 #C86752 #78C852 #52B3C8
split-complementary
#A252C8 #B3C852 #52C867
monochromatic
#5E2779 #8335A8 #A252C8 #BB80D7 #D4AFE6

Accessibility & contrast

On white

4.59
#A252C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#A252C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #A252C8
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A252C8#FFFFFF#000000##FFFFFF
##A252C81.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C71CC
Deuteranopia (green-blind)
#4D77C5
Tritanopia (blue-blind)
#9E6785
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #a252c8;
/* rgb */ color: rgb(162, 82, 200);
/* oklch */ color: oklch(58.6% 0.186 313.4);
Tailwind
colors: {
  custom: {
    50: '#c087d9',
    500: '#a252c8',
    950: '#000000',
  },
}
SCSS
$custom: #a252c8;
$custom-light: #c087d9;
$custom-dark: #000000;
JSON
{
  "hex": "#a252c8",
  "rgb": {
    "r": 162,
    "g": 82,
    "b": 200
  },
  "hsl": {
    "h": 280.678,
    "s": 51.754,
    "l": 55.294
  },
  "oklch": {
    "l": 0.58576,
    "c": 0.18574,
    "h": 313.4
  },
  "luminance": 0.17886
}

Semantic roles & 50–950 ramp

primary
#A252C8
secondary
#B2D4A2
accent
#DB4D7B
background
#FCF8FD
surface
#F8F0FA
border
#D1CBD3
text
#130B15
muted
#827C83

Preview Lab

Preview with #A252C8

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

Preview Lab → · Contrast checker → · Palette generator →

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