#A252CE#A252CE

#A252CE is a mid, vivid violet. Relative luminance 0.182; OKLCH L 58.9% C 0.192 H 311.7°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#A252CE
RGBrgb(162, 82, 206)
HSLhsl(279, 56%, 56%)
HSVhsv(279, 60%, 81%)
CMYKcmyk(21.4%, 60.2%, 0%, 19.2%)
CIE-LABlab(49.71, 53.61, -51.01)
CIE-LCHlch(49.71, 74.00, 316.43°)
OKLaboklab(58.94% 0.1277 -0.1434)
OKLCHoklch(58.94% 0.192 311.7)
XYZxyz(29.0561, 18.1729, 60.3576)
Luminance0.1817 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A252CE #7ECE52
analogous
#6452CE #A252CE #CE52BC
triadic
#A252CE #CEA252 #52CEA2
tetradic
#A252CE #CE6452 #7ECE52 #52BCCE
square
#A252CE #CE6452 #7ECE52 #52BCCE
split-complementary
#A252CE #BCCE52 #52CE64
monochromatic
#602581 #8432B1 #A252CE #BC82DC #D5B1E9

Accessibility & contrast

On white

4.53
#A252CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#A252CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A252CE
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A252CE#FFFFFF#000000##000000
##A252CE1.004.534.634.63
#FFFFFF4.531.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2472D2
Deuteranopia (green-blind)
#4878CB
Tritanopia (blue-blind)
#9D6988
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #a252ce;
/* rgb */ color: rgb(162, 82, 206);
/* oklch */ color: oklch(58.9% 0.192 311.7);
Tailwind
colors: {
  custom: {
    50: '#c187dd',
    500: '#a252ce',
    950: '#000000',
  },
}
SCSS
$custom: #a252ce;
$custom-light: #c187dd;
$custom-dark: #000000;
JSON
{
  "hex": "#a252ce",
  "rgb": {
    "r": 162,
    "g": 82,
    "b": 206
  },
  "hsl": {
    "h": 278.71,
    "s": 55.856,
    "l": 56.471
  },
  "oklch": {
    "l": 0.5894,
    "c": 0.19202,
    "h": 311.7
  },
  "luminance": 0.18172
}

Semantic roles & 50–950 ramp

primary
#A252CE
secondary
#B7D7A4
accent
#DF497E
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130B15
muted
#827C83

Preview Lab

Preview with #A252CE

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

Preview Lab → · Contrast checker → · Palette generator →

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