#A12FC4#A12FC4

#A12FC4 is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.4% C 0.226 H 316.7°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#A12FC4
RGBrgb(161, 47, 196)
HSLhsl(286, 61%, 48%)
HSVhsv(286, 76%, 77%)
CMYKcmyk(17.9%, 76%, 0%, 23.1%)
CIE-LABlab(43.65, 66.12, -54.96)
CIE-LCHlch(43.65, 85.98, 320.26°)
OKLaboklab(54.37% 0.1645 -0.1548)
OKLCHoklch(54.37% 0.226 316.7)
XYZxyz(25.6768, 13.5967, 53.4857)
Luminance0.1360 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A12FC4 #52C42F
analogous
#562FC4 #A12FC4 #C42F9C
triadic
#A12FC4 #C4A12F #2FC4A1
tetradic
#A12FC4 #C4562F #52C42F #2F9CC4
square
#A12FC4 #C4562F #52C42F #2F9CC4
split-complementary
#A12FC4 #9CC42F #2FC456
monochromatic
#501761 #782393 #A12FC4 #BA59D7 #CE8AE3

Accessibility & contrast

On white

5.65
#A12FC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#A12FC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A12FC4
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A12FC4#FFFFFF#000000##FFFFFF
##A12FC41.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C8
Deuteranopia (green-blind)
#306AC1
Tritanopia (blue-blind)
#9F5078
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #a12fc4;
/* rgb */ color: rgb(161, 47, 196);
/* oklch */ color: oklch(54.4% 0.226 316.7);
Tailwind
colors: {
  custom: {
    50: '#c174d7',
    500: '#a12fc4',
    950: '#000000',
  },
}
SCSS
$custom: #a12fc4;
$custom-light: #c174d7;
$custom-dark: #000000;
JSON
{
  "hex": "#a12fc4",
  "rgb": {
    "r": 161,
    "g": 47,
    "b": 196
  },
  "hsl": {
    "h": 285.906,
    "s": 61.317,
    "l": 47.647
  },
  "oklch": {
    "l": 0.54367,
    "c": 0.22588,
    "h": 316.7
  },
  "luminance": 0.13596
}

Semantic roles & 50–950 ramp

primary
#A12FC4
secondary
#93CD82
accent
#E44369
background
#FCF7FD
surface
#F8EDFA
border
#D1C8D3
text
#130914
muted
#827B83

Preview Lab

Preview with #A12FC4

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

Preview Lab → · Contrast checker → · Palette generator →

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