#A252DB#A252DB

#A252DB is a mid, highly saturated violet. Relative luminance 0.188; OKLCH L 59.8% C 0.206 H 308.3°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#A252DB
RGBrgb(162, 82, 219)
HSLhsl(275, 66%, 59%)
HSVhsv(275, 63%, 86%)
CMYKcmyk(26%, 62.6%, 0%, 14.1%)
CIE-LABlab(50.49, 56.47, -57.17)
CIE-LCHlch(50.49, 80.36, 314.65°)
OKLaboklab(59.76% 0.1274 -0.1615)
OKLCHoklch(59.76% 0.206 308.3)
XYZxyz(30.7012, 18.8309, 69.0215)
Luminance0.1883 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A252DB #8BDB52
analogous
#5E52DB #A252DB #DB52D0
triadic
#A252DB #DBA252 #52DBA2
tetradic
#A252DB #DB5E52 #8BDB52 #52D0DB
square
#A252DB #DB5E52 #8BDB52 #52D0DB
split-complementary
#A252DB #D0DB52 #52DB5E
monochromatic
#631F94 #8529C6 #A252DB #BD85E6 #D8B7F0

Accessibility & contrast

On white

4.41
#A252DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#A252DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A252DB
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A252DB#FFFFFF#000000##000000
##A252DB1.004.414.774.77
#FFFFFF4.411.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075DF
Deuteranopia (green-blind)
#3B79D8
Tritanopia (blue-blind)
#996E8F
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #a252db;
/* rgb */ color: rgb(162, 82, 219);
/* oklch */ color: oklch(59.8% 0.206 308.3);
Tailwind
colors: {
  custom: {
    50: '#c187e7',
    500: '#a252db',
    950: '#000000',
  },
}
SCSS
$custom: #a252db;
$custom-light: #c187e7;
$custom-dark: #000000;
JSON
{
  "hex": "#a252db",
  "rgb": {
    "r": 162,
    "g": 82,
    "b": 219
  },
  "hsl": {
    "h": 275.036,
    "s": 65.55,
    "l": 59.02
  },
  "oklch": {
    "l": 0.5976,
    "c": 0.20568,
    "h": 308.3
  },
  "luminance": 0.1883
}

Semantic roles & 50–950 ramp

primary
#A252DB
secondary
#C0DFAA
accent
#E93F86
background
#FCF8FE
surface
#F8F0FC
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #A252DB

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

Preview Lab → · Contrast checker → · Palette generator →

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