#A252FA#A252FA

#A252FA is a mid, highly saturated violet. Relative luminance 0.206; OKLCH L 61.9% C 0.238 H 301.5°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#A252FA
RGBrgb(162, 82, 250)
HSLhsl(269, 94%, 65%)
HSVhsv(269, 67%, 98%)
CMYKcmyk(35.2%, 67.2%, 0%, 2%)
CIE-LABlab(52.53, 63.58, -71.30)
CIE-LCHlch(52.53, 95.53, 311.72°)
OKLaboklab(61.88% 0.1246 -0.203)
OKLCHoklch(61.88% 0.238 301.5)
XYZxyz(35.1688, 20.6179, 92.5508)
Luminance0.2062 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A252FA #AAFA52
analogous
#5256FA #A252FA #F652FA
triadic
#A252FA #FAA252 #52FAA2
tetradic
#A252FA #FA5256 #AAFA52 #52FAF6
square
#A252FA #FA5256 #AAFA52 #52FAF6
split-complementary
#A252FA #FAF652 #56FA52
monochromatic
#6406CC #8217F8 #A252FA #C28DFC #E2C9FD

Accessibility & contrast

On white

4.10
#A252FA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#A252FA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A252FA
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A252FA#FFFFFF#000000##000000
##A252FA1.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CFF
Deuteranopia (green-blind)
#007CF6
Tritanopia (blue-blind)
#8F79A0
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #a252fa;
/* rgb */ color: rgb(162, 82, 250);
/* oklch */ color: oklch(61.9% 0.238 301.5);
Tailwind
colors: {
  custom: {
    50: '#c388fd',
    500: '#a252fa',
    950: '#000000',
  },
}
SCSS
$custom: #a252fa;
$custom-light: #c388fd;
$custom-dark: #000000;
JSON
{
  "hex": "#a252fa",
  "rgb": {
    "r": 162,
    "g": 82,
    "b": 250
  },
  "hsl": {
    "h": 268.571,
    "s": 94.382,
    "l": 65.098
  },
  "oklch": {
    "l": 0.61875,
    "c": 0.23819,
    "h": 301.5
  },
  "luminance": 0.20618
}

Semantic roles & 50–950 ramp

primary
#A252FA
secondary
#D5F0B7
accent
#E60078
background
#FCF8FF
surface
#F8F0FF
border
#D1CBD7
text
#130C18
muted
#827D86

Preview Lab

Preview with #A252FA

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

Preview Lab → · Contrast checker → · Palette generator →

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