#A251DB#A251DB

#A251DB is a mid, highly saturated violet. Relative luminance 0.187; OKLCH L 59.6% C 0.207 H 308.4°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#A251DB
RGBrgb(162, 81, 219)
HSLhsl(275, 66%, 59%)
HSVhsv(275, 63%, 86%)
CMYKcmyk(26%, 63%, 0%, 14.1%)
CIE-LABlab(50.31, 56.96, -57.45)
CIE-LCHlch(50.31, 80.90, 314.75°)
OKLaboklab(59.63% 0.1286 -0.1623)
OKLCHoklch(59.63% 0.207 308.4)
XYZxyz(30.6263, 18.6812, 68.9965)
Luminance0.1868 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A251DB #8ADB51
analogous
#5D51DB #A251DB #DB51CF
triadic
#A251DB #DBA251 #51DBA2
tetradic
#A251DB #DB5D51 #8ADB51 #51CFDB
square
#A251DB #DB5D51 #8ADB51 #51CFDB
split-complementary
#A251DB #CFDB51 #51DB5D
monochromatic
#631E93 #8529C6 #A251DB #BD84E5 #D8B6F0

Accessibility & contrast

On white

4.43
#A251DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#A251DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A251DB
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A251DB#FFFFFF#000000##000000
##A251DB1.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075DF
Deuteranopia (green-blind)
#3A79D8
Tritanopia (blue-blind)
#996D8F
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #a251db;
/* rgb */ color: rgb(162, 81, 219);
/* oklch */ color: oklch(59.6% 0.207 308.4);
Tailwind
colors: {
  custom: {
    50: '#c186e7',
    500: '#a251db',
    950: '#000000',
  },
}
SCSS
$custom: #a251db;
$custom-light: #c186e7;
$custom-dark: #000000;
JSON
{
  "hex": "#a251db",
  "rgb": {
    "r": 162,
    "g": 81,
    "b": 219
  },
  "hsl": {
    "h": 275.217,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.59632,
    "c": 0.20705,
    "h": 308.4
  },
  "luminance": 0.18681
}

Semantic roles & 50–950 ramp

primary
#A251DB
secondary
#BFDFA9
accent
#E93F85
background
#FCF8FE
surface
#F8F0FC
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #A251DB

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

Preview Lab → · Contrast checker → · Palette generator →

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