#A251E4#A251E4

#A251E4 is a mid, highly saturated violet. Relative luminance 0.192; OKLCH L 60.2% C 0.216 H 306.3°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#A251E4
RGBrgb(162, 81, 228)
HSLhsl(273, 73%, 61%)
HSVhsv(273, 64%, 89%)
CMYKcmyk(28.9%, 64.5%, 0%, 10.6%)
CIE-LABlab(50.88, 58.98, -61.63)
CIE-LCHlch(50.88, 85.30, 313.74°)
OKLaboklab(60.23% 0.128 -0.1746)
OKLCHoklch(60.23% 0.216 306.3)
XYZxyz(31.8433, 19.1680, 75.4060)
Luminance0.1917 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A251E4 #93E451
analogous
#5851E4 #A251E4 #E451DD
triadic
#A251E4 #E4A251 #51E4A2
tetradic
#A251E4 #E45851 #93E451 #51DDE4
square
#A251E4 #E45851 #93E451 #51DDE4
split-complementary
#A251E4 #DDE451 #51E458
monochromatic
#6419A2 #8521D7 #A251E4 #BE86EC #DBBBF4

Accessibility & contrast

On white

4.34
#A251E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#A251E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A251E4
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A251E4#FFFFFF#000000##000000
##A251E41.004.344.834.83
#FFFFFF4.341.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077E8
Deuteranopia (green-blind)
#2D7AE1
Tritanopia (blue-blind)
#977094
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #a251e4;
/* rgb */ color: rgb(162, 81, 228);
/* oklch */ color: oklch(60.2% 0.216 306.3);
Tailwind
colors: {
  custom: {
    50: '#c287ed',
    500: '#a251e4',
    950: '#000000',
  },
}
SCSS
$custom: #a251e4;
$custom-light: #c287ed;
$custom-dark: #000000;
JSON
{
  "hex": "#a251e4",
  "rgb": {
    "r": 162,
    "g": 81,
    "b": 228
  },
  "hsl": {
    "h": 273.061,
    "s": 73.134,
    "l": 60.588
  },
  "oklch": {
    "l": 0.60227,
    "c": 0.21646,
    "h": 306.3
  },
  "luminance": 0.19168
}

Semantic roles & 50–950 ramp

primary
#A251E4
secondary
#C6E4AC
accent
#D51069
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #A251E4

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

Preview Lab → · Contrast checker → · Palette generator →

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