#A252D4#A252D4

#A252D4 is a mid, vivid violet. Relative luminance 0.185; OKLCH L 59.3% C 0.198 H 310.1°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#A252D4
RGBrgb(162, 82, 212)
HSLhsl(277, 60%, 58%)
HSVhsv(277, 61%, 83%)
CMYKcmyk(23.6%, 61.3%, 0%, 16.9%)
CIE-LABlab(50.06, 54.92, -53.87)
CIE-LCHlch(50.06, 76.93, 315.55°)
OKLaboklab(59.31% 0.1276 -0.1518)
OKLCHoklch(59.31% 0.198 310.1)
XYZxyz(29.7990, 18.4700, 64.2699)
Luminance0.1847 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A252D4 #84D452
analogous
#6152D4 #A252D4 #D452C5
triadic
#A252D4 #D4A252 #52D4A2
tetradic
#A252D4 #D46152 #84D452 #52C5D4
square
#A252D4 #D46152 #84D452 #52C5D4
split-complementary
#A252D4 #C5D452 #52D461
monochromatic
#622289 #852EBA #A252D4 #BC83E0 #D7B4EC

Accessibility & contrast

On white

4.47
#A252D4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#A252D4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A252D4
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A252D4#FFFFFF#000000##000000
##A252D41.004.474.694.69
#FFFFFF4.471.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#1873D8
Deuteranopia (green-blind)
#4278D1
Tritanopia (blue-blind)
#9B6B8B
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #a252d4;
/* rgb */ color: rgb(162, 82, 212);
/* oklch */ color: oklch(59.3% 0.198 310.1);
Tailwind
colors: {
  custom: {
    50: '#c187e2',
    500: '#a252d4',
    950: '#000000',
  },
}
SCSS
$custom: #a252d4;
$custom-light: #c187e2;
$custom-dark: #000000;
JSON
{
  "hex": "#a252d4",
  "rgb": {
    "r": 162,
    "g": 82,
    "b": 212
  },
  "hsl": {
    "h": 276.923,
    "s": 60.185,
    "l": 57.647
  },
  "oklch": {
    "l": 0.59314,
    "c": 0.19832,
    "h": 310.1
  },
  "luminance": 0.18469
}

Semantic roles & 50–950 ramp

primary
#A252D4
secondary
#BBDBA7
accent
#E34482
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #A252D4

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

Preview Lab → · Contrast checker → · Palette generator →

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