#A12795#A12795

#A12795 is a mid, vivid purple. Relative luminance 0.112; OKLCH L 50.8% C 0.196 H 332.5°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#A12795
RGBrgb(161, 39, 149)
HSLhsl(306, 61%, 39%)
HSVhsv(306, 76%, 63%)
CMYKcmyk(0%, 75.8%, 7.5%, 36.9%)
CIE-LABlab(39.91, 60.53, -33.00)
CIE-LCHlch(39.91, 68.94, 331.40°)
OKLaboklab(50.8% 0.1742 -0.0907)
OKLCHoklch(50.8% 0.196 332.5)
XYZxyz(20.8484, 11.1998, 29.4917)
Luminance0.1120 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A12795 #27A133
analogous
#7027A1 #A12795 #A12758
triadic
#A12795 #95A127 #2795A1
tetradic
#A12795 #A17027 #27A133 #2758A1
square
#A12795 #A17027 #27A133 #2758A1
split-complementary
#A12795 #58A127 #27A170
monochromatic
#3E0F3A #701B67 #A12795 #CE37C0 #DA68CF

Accessibility & contrast

On white

6.48
#A12795 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#A12795 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A12795
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A12795#FFFFFF#000000##FFFFFF
##A127951.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5398
Deuteranopia (green-blind)
#506492
Tritanopia (blue-blind)
#A8355C
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a12795;
/* rgb */ color: rgb(161, 39, 149);
/* oklch */ color: oklch(50.8% 0.196 332.5);
Tailwind
colors: {
  custom: {
    50: '#c06fb4',
    500: '#a12795',
    950: '#000000',
  },
}
SCSS
$custom: #a12795;
$custom-light: #c06fb4;
$custom-dark: #000000;
JSON
{
  "hex": "#a12795",
  "rgb": {
    "r": 161,
    "g": 39,
    "b": 149
  },
  "hsl": {
    "h": 305.902,
    "s": 61,
    "l": 39.216
  },
  "oklch": {
    "l": 0.50803,
    "c": 0.19636,
    "h": 332.5
  },
  "luminance": 0.11198
}

Semantic roles & 50–950 ramp

primary
#A12795
secondary
#63C06C
accent
#E45344
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #A12795

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

Preview Lab → · Contrast checker → · Palette generator →

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