#A5338A#A5338A

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

Color values

HEX#A5338A
RGBrgb(165, 51, 138)
HSLhsl(314, 53%, 42%)
HSVhsv(314, 69%, 65%)
CMYKcmyk(0%, 69.1%, 16.4%, 35.3%)
CIE-LABlab(41.54, 55.64, -23.71)
CIE-LCHlch(41.54, 60.48, 336.92°)
OKLaboklab(51.93% 0.1647 -0.0641)
OKLCHoklch(51.93% 0.177 338.7)
XYZxyz(21.2888, 12.2039, 25.2742)
Luminance0.1220 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5338A #33A54E
analogous
#8733A5 #A5338A #A53351
triadic
#A5338A #8AA533 #338AA5
tetradic
#A5338A #A58733 #33A54E #3351A5
square
#A5338A #A58733 #33A54E #3351A5
split-complementary
#A5338A #51A533 #33A587
monochromatic
#48163C #762563 #A5338A #C84DAB #D67CC1

Accessibility & contrast

On white

6.10
#A5338A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#A5338A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A5338A
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5338A#FFFFFF#000000##FFFFFF
##A5338A1.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38578D
Deuteranopia (green-blind)
#5D6887
Tritanopia (blue-blind)
#AE375A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #a5338a;
/* rgb */ color: rgb(165, 51, 138);
/* oklch */ color: oklch(51.9% 0.177 338.7);
Tailwind
colors: {
  custom: {
    50: '#c374ac',
    500: '#a5338a',
    950: '#000000',
  },
}
SCSS
$custom: #a5338a;
$custom-light: #c374ac;
$custom-dark: #000000;
JSON
{
  "hex": "#a5338a",
  "rgb": {
    "r": 165,
    "g": 51,
    "b": 138
  },
  "hsl": {
    "h": 314.211,
    "s": 52.778,
    "l": 42.353
  },
  "oklch": {
    "l": 0.5193,
    "c": 0.17678,
    "h": 338.7
  },
  "luminance": 0.12202
}

Semantic roles & 50–950 ramp

primary
#A5338A
secondary
#75BF86
accent
#DC6E4C
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130910
muted
#827B7F

Preview Lab

Preview with #A5338A

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

Preview Lab → · Contrast checker → · Palette generator →

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