#A851DC#A851DC

#A851DC is a mid, highly saturated violet. Relative luminance 0.194; OKLCH L 60.4% C 0.210 H 310.4°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#A851DC
RGBrgb(168, 81, 220)
HSLhsl(278, 67%, 59%)
HSVhsv(278, 63%, 86%)
CMYKcmyk(23.6%, 63.2%, 0%, 13.7%)
CIE-LABlab(51.13, 58.52, -56.67)
CIE-LCHlch(51.13, 81.47, 315.92°)
OKLaboklab(60.4% 0.1361 -0.1598)
OKLCHoklch(60.4% 0.21 310.4)
XYZxyz(32.0067, 19.3777, 69.7505)
Luminance0.1938 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A851DC #85DC51
analogous
#6351DC #A851DC #DC51CB
triadic
#A851DC #DCA851 #51DCA8
tetradic
#A851DC #DC6351 #85DC51 #51CBDC
square
#A851DC #DC6351 #85DC51 #51CBDC
split-complementary
#A851DC #CBDC51 #51DC63
monochromatic
#681E95 #8C28C8 #A851DC #C184E6 #DBB7F0

Accessibility & contrast

On white

4.31
#A851DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#A851DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A851DC
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A851DC#FFFFFF#000000##000000
##A851DC1.004.314.884.88
#FFFFFF4.311.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076E0
Deuteranopia (green-blind)
#407BD9
Tritanopia (blue-blind)
#A16D8F
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #a851dc;
/* rgb */ color: rgb(168, 81, 220);
/* oklch */ color: oklch(60.4% 0.210 310.4);
Tailwind
colors: {
  custom: {
    50: '#c687e8',
    500: '#a851dc',
    950: '#000000',
  },
}
SCSS
$custom: #a851dc;
$custom-light: #c687e8;
$custom-dark: #000000;
JSON
{
  "hex": "#a851dc",
  "rgb": {
    "r": 168,
    "g": 81,
    "b": 220
  },
  "hsl": {
    "h": 277.554,
    "s": 66.507,
    "l": 59.02
  },
  "oklch": {
    "l": 0.60402,
    "c": 0.20992,
    "h": 310.4
  },
  "luminance": 0.19377
}

Semantic roles & 50–950 ramp

primary
#A851DC
secondary
#BEE0A9
accent
#E93E7E
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #A851DC

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

Preview Lab → · Contrast checker → · Palette generator →

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