#A252DF#A252DF

#A252DF is a mid, highly saturated violet. Relative luminance 0.190; OKLCH L 60.0% C 0.210 H 307.3°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#A252DF
RGBrgb(162, 82, 223)
HSLhsl(274, 69%, 60%)
HSVhsv(274, 63%, 87%)
CMYKcmyk(27.4%, 63.2%, 0%, 12.5%)
CIE-LABlab(50.74, 57.37, -59.04)
CIE-LCHlch(50.74, 82.32, 314.18°)
OKLaboklab(60.02% 0.1272 -0.1669)
OKLCHoklch(60.02% 0.21 307.3)
XYZxyz(31.2341, 19.0441, 71.8282)
Luminance0.1904 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A252DF #8FDF52
analogous
#5C52DF #A252DF #DF52D5
triadic
#A252DF #DFA252 #52DFA2
tetradic
#A252DF #DF5C52 #8FDF52 #52D5DF
square
#A252DF #DF5C52 #8FDF52 #52D5DF
split-complementary
#A252DF #D5DF52 #52DF5C
monochromatic
#641D9A #8526CE #A252DF #BE86E9 #DAB9F2

Accessibility & contrast

On white

4.37
#A252DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#A252DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A252DF
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A252DF#FFFFFF#000000##000000
##A252DF1.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076E3
Deuteranopia (green-blind)
#367ADC
Tritanopia (blue-blind)
#986F91
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #a252df;
/* rgb */ color: rgb(162, 82, 223);
/* oklch */ color: oklch(60.0% 0.210 307.3);
Tailwind
colors: {
  custom: {
    50: '#c287ea',
    500: '#a252df',
    950: '#000000',
  },
}
SCSS
$custom: #a252df;
$custom-light: #c287ea;
$custom-dark: #000000;
JSON
{
  "hex": "#a252df",
  "rgb": {
    "r": 162,
    "g": 82,
    "b": 223
  },
  "hsl": {
    "h": 274.043,
    "s": 68.78,
    "l": 59.804
  },
  "oklch": {
    "l": 0.60021,
    "c": 0.20988,
    "h": 307.3
  },
  "luminance": 0.19044
}

Semantic roles & 50–950 ramp

primary
#A252DF
secondary
#C3E2AB
accent
#EC3C88
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #A252DF

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

Preview Lab → · Contrast checker → · Palette generator →

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