#A8338B#A8338B

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

Color values

HEX#A8338B
RGBrgb(168, 51, 139)
HSLhsl(315, 53%, 43%)
HSVhsv(315, 70%, 66%)
CMYKcmyk(0%, 69.6%, 17.3%, 34.1%)
CIE-LABlab(42.09, 56.57, -23.42)
CIE-LCHlch(42.09, 61.23, 337.51°)
OKLaboklab(52.44% 0.1679 -0.0633)
OKLCHoklch(52.44% 0.179 339.4)
XYZxyz(21.9930, 12.5586, 25.6869)
Luminance0.1256 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8338B #33A850
analogous
#8B33A8 #A8338B #A83350
triadic
#A8338B #8BA833 #338BA8
tetradic
#A8338B #A88B33 #33A850 #3350A8
square
#A8338B #A88B33 #33A850 #3350A8
split-complementary
#A8338B #50A833 #33A88B
monochromatic
#4A163D #792564 #A8338B #C94FAB #D87EC1

Accessibility & contrast

On white

5.98
#A8338B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A8338B
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8338B#FFFFFF#000000##FFFFFF
##A8338B1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39588E
Deuteranopia (green-blind)
#5F6A88
Tritanopia (blue-blind)
#B2375A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #a8338b;
/* rgb */ color: rgb(168, 51, 139);
/* oklch */ color: oklch(52.4% 0.179 339.4);
Tailwind
colors: {
  custom: {
    50: '#c575ad',
    500: '#a8338b',
    950: '#000000',
  },
}
SCSS
$custom: #a8338b;
$custom-light: #c575ad;
$custom-dark: #000000;
JSON
{
  "hex": "#a8338b",
  "rgb": {
    "r": 168,
    "g": 51,
    "b": 139
  },
  "hsl": {
    "h": 314.872,
    "s": 53.425,
    "l": 42.941
  },
  "oklch": {
    "l": 0.52444,
    "c": 0.17947,
    "h": 339.4
  },
  "luminance": 0.12557
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A8338B

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

Preview Lab → · Contrast checker → · Palette generator →

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