#A151B2#A151B2

#A151B2 is a mid, vivid purple. Relative luminance 0.167; OKLCH L 57.1% C 0.164 H 320.4°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#A151B2
RGBrgb(161, 81, 178)
HSLhsl(289, 39%, 51%)
HSVhsv(289, 54%, 70%)
CMYKcmyk(9.6%, 54.5%, 0%, 30.2%)
CIE-LABlab(47.85, 48.00, -37.75)
CIE-LCHlch(47.85, 61.07, 321.82°)
OKLaboklab(57.06% 0.1264 -0.1048)
OKLCHoklch(57.06% 0.164 320.4)
XYZxyz(25.6753, 16.6774, 43.9775)
Luminance0.1668 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A151B2 #62B251
analogous
#7151B2 #A151B2 #B25192
triadic
#A151B2 #B2A151 #51B2A1
tetradic
#A151B2 #B27151 #62B251 #5192B2
square
#A151B2 #B27151 #62B251 #5192B2
split-complementary
#A151B2 #92B251 #51B271
monochromatic
#552A5F #7C3D89 #A151B2 #B87BC5 #CFA6D8

Accessibility & contrast

On white

4.84
#A151B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#A151B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A151B2
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A151B2#FFFFFF#000000##FFFFFF
##A151B21.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F6CB5
Deuteranopia (green-blind)
#5975AF
Tritanopia (blue-blind)
#A25F7A
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #a151b2;
/* rgb */ color: rgb(161, 81, 178);
/* oklch */ color: oklch(57.1% 0.164 320.4);
Tailwind
colors: {
  custom: {
    50: '#bf85c9',
    500: '#a151b2',
    950: '#000000',
  },
}
SCSS
$custom: #a151b2;
$custom-light: #bf85c9;
$custom-dark: #000000;
JSON
{
  "hex": "#a151b2",
  "rgb": {
    "r": 161,
    "g": 81,
    "b": 178
  },
  "hsl": {
    "h": 289.485,
    "s": 38.645,
    "l": 50.784
  },
  "oklch": {
    "l": 0.57059,
    "c": 0.16421,
    "h": 320.4
  },
  "luminance": 0.16676
}

Semantic roles & 50–950 ramp

primary
#A151B2
secondary
#A1C59A
accent
#CF596E
background
#FCF8FC
surface
#F8EFF8
border
#D1CAD1
text
#120B13
muted
#817C82

Preview Lab

Preview with #A151B2

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

Preview Lab → · Contrast checker → · Palette generator →

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