#A12FB8#A12FB8

#A12FB8 is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.6% C 0.216 H 320.3°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#A12FB8
RGBrgb(161, 47, 184)
HSLhsl(290, 59%, 45%)
HSVhsv(290, 74%, 72%)
CMYKcmyk(12.5%, 74.5%, 0%, 27.8%)
CIE-LABlab(42.87, 63.87, -49.19)
CIE-LCHlch(42.87, 80.62, 322.39°)
OKLaboklab(53.57% 0.1659 -0.1379)
OKLCHoklch(53.57% 0.216 320.3)
XYZxyz(24.3651, 13.0721, 46.5779)
Luminance0.1307 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A12FB8 #46B82F
analogous
#5C2FB8 #A12FB8 #B82F8A
triadic
#A12FB8 #B8A12F #2FB8A1
tetradic
#A12FB8 #B85C2F #46B82F #2F8AB8
square
#A12FB8 #B85C2F #46B82F #2F8AB8
split-complementary
#A12FB8 #8AB82F #2FB85C
monochromatic
#4C1657 #762387 #A12FB8 #BD52D3 #D082DF

Accessibility & contrast

On white

5.81
#A12FB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#A12FB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A12FB8
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A12FB8#FFFFFF#000000##FFFFFF
##A12FB81.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBC
Deuteranopia (green-blind)
#3D69B5
Tritanopia (blue-blind)
#A24A72
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #a12fb8;
/* rgb */ color: rgb(161, 47, 184);
/* oklch */ color: oklch(53.6% 0.216 320.3);
Tailwind
colors: {
  custom: {
    50: '#c173ce',
    500: '#a12fb8',
    950: '#000000',
  },
}
SCSS
$custom: #a12fb8;
$custom-light: #c173ce;
$custom-dark: #000000;
JSON
{
  "hex": "#a12fb8",
  "rgb": {
    "r": 161,
    "g": 47,
    "b": 184
  },
  "hsl": {
    "h": 289.927,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.53569,
    "c": 0.2157,
    "h": 320.3
  },
  "luminance": 0.13071
}

Semantic roles & 50–950 ramp

primary
#A12FB8
secondary
#88C87B
accent
#E24560
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130914
muted
#827B82

Preview Lab

Preview with #A12FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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