#A6338A#A6338A

#A6338A is a mid, vivid pink. Relative luminance 0.123; OKLCH L 52.1% C 0.177 H 339.1°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#A6338A
RGBrgb(166, 51, 138)
HSLhsl(315, 53%, 43%)
HSVhsv(315, 69%, 65%)
CMYKcmyk(0%, 69.3%, 16.9%, 34.9%)
CIE-LABlab(41.71, 55.90, -23.44)
CIE-LCHlch(41.71, 60.62, 337.26°)
OKLaboklab(52.09% 0.1658 -0.0633)
OKLCHoklch(52.09% 0.177 339.1)
XYZxyz(21.4976, 12.3116, 25.2840)
Luminance0.1231 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6338A #33A64F
analogous
#8933A6 #A6338A #A63350
triadic
#A6338A #8AA633 #338AA6
tetradic
#A6338A #A68933 #33A64F #3350A6
square
#A6338A #A68933 #33A64F #3350A6
split-complementary
#A6338A #50A633 #33A689
monochromatic
#48163C #772563 #A6338A #C94EAB #D77CC1

Accessibility & contrast

On white

6.07
#A6338A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#A6338A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A6338A
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6338A#FFFFFF#000000##FFFFFF
##A6338A1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39578C
Deuteranopia (green-blind)
#5D6987
Tritanopia (blue-blind)
#AF375A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #a6338a;
/* rgb */ color: rgb(166, 51, 138);
/* oklch */ color: oklch(52.1% 0.177 339.1);
Tailwind
colors: {
  custom: {
    50: '#c474ac',
    500: '#a6338a',
    950: '#000000',
  },
}
SCSS
$custom: #a6338a;
$custom-light: #c474ac;
$custom-dark: #000000;
JSON
{
  "hex": "#a6338a",
  "rgb": {
    "r": 166,
    "g": 51,
    "b": 138
  },
  "hsl": {
    "h": 314.609,
    "s": 52.995,
    "l": 42.549
  },
  "oklch": {
    "l": 0.52086,
    "c": 0.17745,
    "h": 339.1
  },
  "luminance": 0.1231
}

Semantic roles & 50–950 ramp

primary
#A6338A
secondary
#75C087
accent
#DC6F4B
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130910
muted
#827B7F

Preview Lab

Preview with #A6338A

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

Preview Lab → · Contrast checker → · Palette generator →

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