#AD51E2#AD51E2

#AD51E2 is a mid, highly saturated violet. Relative luminance 0.203; OKLCH L 61.4% C 0.218 H 310.8°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#AD51E2
RGBrgb(173, 81, 226)
HSLhsl(278, 71%, 60%)
HSVhsv(278, 64%, 89%)
CMYKcmyk(23.5%, 64.2%, 0%, 11.4%)
CIE-LABlab(52.13, 60.92, -58.42)
CIE-LCHlch(52.13, 84.41, 316.20°)
OKLaboklab(61.38% 0.1421 -0.1648)
OKLCHoklch(61.38% 0.218 310.8)
XYZxyz(33.9009, 20.2608, 74.0616)
Luminance0.2026 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AD51E2 #86E251
analogous
#6451E2 #AD51E2 #E251CF
triadic
#AD51E2 #E2AD51 #51E2AD
tetradic
#AD51E2 #E26451 #86E251 #51CFE2
square
#AD51E2 #E26451 #86E251 #51CFE2
split-complementary
#AD51E2 #CFE251 #51E264
monochromatic
#6E1A9E #9323D3 #AD51E2 #C685EB #DEBAF3

Accessibility & contrast

On white

4.16
#AD51E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#AD51E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AD51E2
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AD51E2#FFFFFF#000000##000000
##AD51E21.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078E6
Deuteranopia (green-blind)
#407EDF
Tritanopia (blue-blind)
#A66E93
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ad51e2;
/* rgb */ color: rgb(173, 81, 226);
/* oklch */ color: oklch(61.4% 0.218 310.8);
Tailwind
colors: {
  custom: {
    50: '#c987ec',
    500: '#ad51e2',
    950: '#000000',
  },
}
SCSS
$custom: #ad51e2;
$custom-light: #c987ec;
$custom-dark: #000000;
JSON
{
  "hex": "#ad51e2",
  "rgb": {
    "r": 173,
    "g": 81,
    "b": 226
  },
  "hsl": {
    "h": 278.069,
    "s": 71.429,
    "l": 60.196
  },
  "oklch": {
    "l": 0.61381,
    "c": 0.21758,
    "h": 310.8
  },
  "luminance": 0.2026
}

Semantic roles & 50–950 ramp

primary
#AD51E2
secondary
#C0E3AC
accent
#D31259
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AD51E2

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

Preview Lab → · Contrast checker → · Palette generator →

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