#A151DB#A151DB

#A151DB is a mid, highly saturated violet. Relative luminance 0.186; OKLCH L 59.5% C 0.207 H 308.0°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#A151DB
RGBrgb(161, 81, 219)
HSLhsl(275, 66%, 59%)
HSVhsv(275, 63%, 86%)
CMYKcmyk(26.5%, 63%, 0%, 14.1%)
CIE-LABlab(50.19, 56.73, -57.66)
CIE-LCHlch(50.19, 80.89, 314.54°)
OKLaboklab(59.52% 0.1273 -0.1629)
OKLCHoklch(59.52% 0.207 308)
XYZxyz(30.4239, 18.5768, 68.9870)
Luminance0.1858 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A151DB #8BDB51
analogous
#5C51DB #A151DB #DB51D0
triadic
#A151DB #DBA151 #51DBA1
tetradic
#A151DB #DB5C51 #8BDB51 #51D0DB
square
#A151DB #DB5C51 #8BDB51 #51D0DB
split-complementary
#A151DB #D0DB51 #51DB5C
monochromatic
#621E93 #8429C6 #A151DB #BC84E5 #D8B6F0

Accessibility & contrast

On white

4.45
#A151DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#A151DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A151DB
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A151DB#FFFFFF#000000##000000
##A151DB1.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074DF
Deuteranopia (green-blind)
#3978D8
Tritanopia (blue-blind)
#986D8F
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #a151db;
/* rgb */ color: rgb(161, 81, 219);
/* oklch */ color: oklch(59.5% 0.207 308.0);
Tailwind
colors: {
  custom: {
    50: '#c186e7',
    500: '#a151db',
    950: '#000000',
  },
}
SCSS
$custom: #a151db;
$custom-light: #c186e7;
$custom-dark: #000000;
JSON
{
  "hex": "#a151db",
  "rgb": {
    "r": 161,
    "g": 81,
    "b": 219
  },
  "hsl": {
    "h": 274.783,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.59516,
    "c": 0.20676,
    "h": 308
  },
  "luminance": 0.18576
}

Semantic roles & 50–950 ramp

primary
#A151DB
secondary
#C0DFA9
accent
#E93F86
background
#FCF8FE
surface
#F8F0FC
border
#D1CBD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #A151DB

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

Preview Lab → · Contrast checker → · Palette generator →

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