#A252F8#A252F8

#A252F8 is a mid, highly saturated violet. Relative luminance 0.205; OKLCH L 61.7% C 0.236 H 301.9°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#A252F8
RGBrgb(162, 82, 248)
HSLhsl(269, 92%, 65%)
HSVhsv(269, 67%, 97%)
CMYKcmyk(34.7%, 66.9%, 0%, 2.7%)
CIE-LABlab(52.39, 63.11, -70.41)
CIE-LCHlch(52.39, 94.55, 311.87°)
OKLaboklab(61.73% 0.1249 -0.2004)
OKLCHoklch(61.73% 0.236 301.9)
XYZxyz(34.8568, 20.4932, 90.9079)
Luminance0.2049 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A252F8 #A8F852
analogous
#5255F8 #A252F8 #F552F8
triadic
#A252F8 #F8A252 #52F8A2
tetradic
#A252F8 #F85255 #A8F852 #52F8F5
square
#A252F8 #F85255 #A8F852 #52F8F5
split-complementary
#A252F8 #F8F552 #55F852
monochromatic
#6408C8 #8217F6 #A252F8 #C28DFA #E1C8FD

Accessibility & contrast

On white

4.12
#A252F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#A252F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A252F8
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A252F8#FFFFFF#000000##000000
##A252F81.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CFD
Deuteranopia (green-blind)
#007CF4
Tritanopia (blue-blind)
#90789F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #a252f8;
/* rgb */ color: rgb(162, 82, 248);
/* oklch */ color: oklch(61.7% 0.236 301.9);
Tailwind
colors: {
  custom: {
    50: '#c388fb',
    500: '#a252f8',
    950: '#000000',
  },
}
SCSS
$custom: #a252f8;
$custom-light: #c388fb;
$custom-dark: #000000;
JSON
{
  "hex": "#a252f8",
  "rgb": {
    "r": 162,
    "g": 82,
    "b": 248
  },
  "hsl": {
    "h": 268.916,
    "s": 92.222,
    "l": 64.706
  },
  "oklch": {
    "l": 0.61732,
    "c": 0.23611,
    "h": 301.9
  },
  "luminance": 0.20493
}

Semantic roles & 50–950 ramp

primary
#A252F8
secondary
#D4EFB6
accent
#E60077
background
#FCF8FF
surface
#F8F0FF
border
#D1CBD7
text
#130C18
muted
#827D86

Preview Lab

Preview with #A252F8

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

Preview Lab → · Contrast checker → · Palette generator →

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