#A251DC#A251DC

#A251DC is a mid, highly saturated violet. Relative luminance 0.187; OKLCH L 59.7% C 0.208 H 308.1°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#A251DC
RGBrgb(162, 81, 220)
HSLhsl(275, 67%, 59%)
HSVhsv(275, 63%, 86%)
CMYKcmyk(26.4%, 63.2%, 0%, 13.7%)
CIE-LABlab(50.37, 57.18, -57.92)
CIE-LCHlch(50.37, 81.39, 314.63°)
OKLaboklab(59.7% 0.1285 -0.1637)
OKLCHoklch(59.7% 0.208 308.1)
XYZxyz(30.7584, 18.7340, 69.6919)
Luminance0.1873 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A251DC #8BDC51
analogous
#5D51DC #A251DC #DC51D1
triadic
#A251DC #DCA251 #51DCA2
tetradic
#A251DC #DC5D51 #8BDC51 #51D1DC
square
#A251DC #DC5D51 #8BDC51 #51D1DC
split-complementary
#A251DC #D1DC51 #51DC5D
monochromatic
#631E95 #8528C8 #A251DC #BD84E6 #D8B7F0

Accessibility & contrast

On white

4.42
#A251DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#A251DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A251DC
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A251DC#FFFFFF#000000##000000
##A251DC1.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075E0
Deuteranopia (green-blind)
#3979D9
Tritanopia (blue-blind)
#996D8F
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #a251dc;
/* rgb */ color: rgb(162, 81, 220);
/* oklch */ color: oklch(59.7% 0.208 308.1);
Tailwind
colors: {
  custom: {
    50: '#c286e8',
    500: '#a251dc',
    950: '#000000',
  },
}
SCSS
$custom: #a251dc;
$custom-light: #c286e8;
$custom-dark: #000000;
JSON
{
  "hex": "#a251dc",
  "rgb": {
    "r": 162,
    "g": 81,
    "b": 220
  },
  "hsl": {
    "h": 274.964,
    "s": 66.507,
    "l": 59.02
  },
  "oklch": {
    "l": 0.59698,
    "c": 0.20809,
    "h": 308.1
  },
  "luminance": 0.18734
}

Semantic roles & 50–950 ramp

primary
#A251DC
secondary
#C0E0A9
accent
#E93E86
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #A251DC

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

Preview Lab → · Contrast checker → · Palette generator →

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