#A251D5#A251D5

#A251D5 is a mid, highly saturated violet. Relative luminance 0.184; OKLCH L 59.2% C 0.201 H 309.9°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#A251D5
RGBrgb(162, 81, 213)
HSLhsl(277, 61%, 58%)
HSVhsv(277, 62%, 84%)
CMYKcmyk(23.9%, 62%, 0%, 16.5%)
CIE-LABlab(49.94, 55.63, -54.63)
CIE-LCHlch(49.94, 77.97, 315.52°)
OKLaboklab(59.25% 0.1288 -0.154)
OKLCHoklch(59.25% 0.201 309.9)
XYZxyz(29.8506, 18.3709, 64.9113)
Luminance0.1837 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A251D5 #84D551
analogous
#6051D5 #A251D5 #D551C6
triadic
#A251D5 #D5A251 #51D5A2
tetradic
#A251D5 #D56051 #84D551 #51C6D5
square
#A251D5 #D56051 #84D551 #51C6D5
split-complementary
#A251D5 #C6D551 #51D560
monochromatic
#62218A #852DBC #A251D5 #BC82E1 #D7B4ED

Accessibility & contrast

On white

4.49
#A251D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.67
#A251D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A251D5
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A251D5#FFFFFF#000000##000000
##A251D51.004.494.674.67
#FFFFFF4.491.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#1073D9
Deuteranopia (green-blind)
#4078D2
Tritanopia (blue-blind)
#9B6B8C
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #a251d5;
/* rgb */ color: rgb(162, 81, 213);
/* oklch */ color: oklch(59.2% 0.201 309.9);
Tailwind
colors: {
  custom: {
    50: '#c186e3',
    500: '#a251d5',
    950: '#000000',
  },
}
SCSS
$custom: #a251d5;
$custom-light: #c186e3;
$custom-dark: #000000;
JSON
{
  "hex": "#a251d5",
  "rgb": {
    "r": 162,
    "g": 81,
    "b": 213
  },
  "hsl": {
    "h": 276.818,
    "s": 61.111,
    "l": 57.647
  },
  "oklch": {
    "l": 0.59247,
    "c": 0.20078,
    "h": 309.9
  },
  "luminance": 0.1837
}

Semantic roles & 50–950 ramp

primary
#A251D5
secondary
#BBDBA6
accent
#E44482
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130B15
muted
#827C83

Preview Lab

Preview with #A251D5

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

Preview Lab → · Contrast checker → · Palette generator →

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