#AD51EB#AD51EB

#AD51EB is a mid, highly saturated violet. Relative luminance 0.208; OKLCH L 62.0% C 0.227 H 308.6°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#AD51EB
RGBrgb(173, 81, 235)
HSLhsl(276, 79%, 62%)
HSVhsv(276, 66%, 92%)
CMYKcmyk(26.4%, 65.5%, 0%, 7.8%)
CIE-LABlab(52.69, 62.86, -62.58)
CIE-LCHlch(52.69, 88.70, 315.13°)
OKLaboklab(61.97% 0.1415 -0.177)
OKLCHoklch(61.97% 0.227 308.6)
XYZxyz(35.1684, 20.7678, 80.7371)
Luminance0.2077 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AD51EB #8FEB51
analogous
#6051EB #AD51EB #EB51DC
triadic
#AD51EB #EBAD51 #51EBAD
tetradic
#AD51EB #EB6051 #8FEB51 #51DCEB
square
#AD51EB #EB6051 #8FEB51 #51DCEB
split-complementary
#AD51EB #DCEB51 #51EB60
monochromatic
#7014AE #931AE5 #AD51EB #C788F1 #E1BFF8

Accessibility & contrast

On white

4.07
#AD51EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#AD51EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AD51EB
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AD51EB#FFFFFF#000000##000000
##AD51EB1.004.075.155.15
#FFFFFF4.071.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AF0
Deuteranopia (green-blind)
#347FE8
Tritanopia (blue-blind)
#A47197
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ad51eb;
/* rgb */ color: rgb(173, 81, 235);
/* oklch */ color: oklch(62.0% 0.227 308.6);
Tailwind
colors: {
  custom: {
    50: '#ca88f2',
    500: '#ad51eb',
    950: '#000000',
  },
}
SCSS
$custom: #ad51eb;
$custom-light: #ca88f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ad51eb",
  "rgb": {
    "r": 173,
    "g": 81,
    "b": 235
  },
  "hsl": {
    "h": 275.844,
    "s": 79.381,
    "l": 61.961
  },
  "oklch": {
    "l": 0.61967,
    "c": 0.2266,
    "h": 308.6
  },
  "luminance": 0.20767
}

Semantic roles & 50–950 ramp

primary
#AD51EB
secondary
#C6E8B0
accent
#DC0A5E
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AD51EB

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

Preview Lab → · Contrast checker → · Palette generator →

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