#A8338A#A8338A

#A8338A is a mid, vivid pink. Relative luminance 0.125; OKLCH L 52.4% C 0.179 H 339.8°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#A8338A
RGBrgb(168, 51, 138)
HSLhsl(315, 53%, 43%)
HSVhsv(315, 70%, 66%)
CMYKcmyk(0%, 69.6%, 17.9%, 34.1%)
CIE-LABlab(42.05, 56.43, -22.88)
CIE-LCHlch(42.05, 60.89, 337.93°)
OKLaboklab(52.4% 0.1678 -0.0617)
OKLCHoklch(52.4% 0.179 339.8)
XYZxyz(21.9203, 12.5295, 25.3038)
Luminance0.1253 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8338A #33A851
analogous
#8C33A8 #A8338A #A8334F
triadic
#A8338A #8AA833 #338AA8
tetradic
#A8338A #A88C33 #33A851 #334FA8
square
#A8338A #A88C33 #33A851 #334FA8
split-complementary
#A8338A #4FA833 #33A88C
monochromatic
#4A163D #792563 #A8338A #C94FAA #D87EC1

Accessibility & contrast

On white

5.99
#A8338A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#A8338A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A8338A
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8338A#FFFFFF#000000##FFFFFF
##A8338A1.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A578C
Deuteranopia (green-blind)
#5F6A87
Tritanopia (blue-blind)
#B2375A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #a8338a;
/* rgb */ color: rgb(168, 51, 138);
/* oklch */ color: oklch(52.4% 0.179 339.8);
Tailwind
colors: {
  custom: {
    50: '#c574ac',
    500: '#a8338a',
    950: '#000000',
  },
}
SCSS
$custom: #a8338a;
$custom-light: #c574ac;
$custom-dark: #000000;
JSON
{
  "hex": "#a8338a",
  "rgb": {
    "r": 168,
    "g": 51,
    "b": 138
  },
  "hsl": {
    "h": 315.385,
    "s": 53.425,
    "l": 42.941
  },
  "oklch": {
    "l": 0.52397,
    "c": 0.17879,
    "h": 339.8
  },
  "luminance": 0.12527
}

Semantic roles & 50–950 ramp

primary
#A8338A
secondary
#76C189
accent
#DD704B
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130910
muted
#827B7F

Preview Lab

Preview with #A8338A

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

Preview Lab → · Contrast checker → · Palette generator →

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