#A6318B#A6318B

#A6318B is a mid, vivid pink. Relative luminance 0.122; OKLCH L 51.9% C 0.181 H 338.6°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#A6318B
RGBrgb(166, 49, 139)
HSLhsl(314, 54%, 42%)
HSVhsv(314, 70%, 65%)
CMYKcmyk(0%, 70.5%, 16.3%, 34.9%)
CIE-LABlab(41.48, 56.80, -24.39)
CIE-LCHlch(41.48, 61.82, 336.76°)
OKLaboklab(51.94% 0.1682 -0.066)
OKLCHoklch(51.94% 0.181 338.6)
XYZxyz(21.4849, 12.1697, 25.6386)
Luminance0.1217 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6318B #31A64C
analogous
#8731A6 #A6318B #A63151
triadic
#A6318B #8BA631 #318BA6
tetradic
#A6318B #A68731 #31A64C #3151A6
square
#A6318B #A68731 #31A64C #3151A6
split-complementary
#A6318B #51A631 #31A687
monochromatic
#47153C #772363 #A6318B #CA4AAC #D87AC2

Accessibility & contrast

On white

6.12
#A6318B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#A6318B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A6318B
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6318B#FFFFFF#000000##FFFFFF
##A6318B1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#36568E
Deuteranopia (green-blind)
#5C6888
Tritanopia (blue-blind)
#AF365A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #a6318b;
/* rgb */ color: rgb(166, 49, 139);
/* oklch */ color: oklch(51.9% 0.181 338.6);
Tailwind
colors: {
  custom: {
    50: '#c473ad',
    500: '#a6318b',
    950: '#000000',
  },
}
SCSS
$custom: #a6318b;
$custom-light: #c473ad;
$custom-dark: #000000;
JSON
{
  "hex": "#a6318b",
  "rgb": {
    "r": 166,
    "g": 49,
    "b": 139
  },
  "hsl": {
    "h": 313.846,
    "s": 54.419,
    "l": 42.157
  },
  "oklch": {
    "l": 0.51939,
    "c": 0.18068,
    "h": 338.6
  },
  "luminance": 0.12168
}

Semantic roles & 50–950 ramp

primary
#A6318B
secondary
#73C085
accent
#DE6C4A
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130910
muted
#827B7F

Preview Lab

Preview with #A6318B

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

Preview Lab → · Contrast checker → · Palette generator →

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