#A5338B#A5338B

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

Color values

HEX#A5338B
RGBrgb(165, 51, 139)
HSLhsl(314, 53%, 42%)
HSVhsv(314, 69%, 65%)
CMYKcmyk(0%, 69.1%, 15.8%, 35.3%)
CIE-LABlab(41.58, 55.79, -24.25)
CIE-LCHlch(41.58, 60.83, 336.51°)
OKLaboklab(51.98% 0.1649 -0.0657)
OKLCHoklch(51.98% 0.177 338.3)
XYZxyz(21.3615, 12.2330, 25.6573)
Luminance0.1223 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5338B #33A54D
analogous
#8633A5 #A5338B #A53352
triadic
#A5338B #8BA533 #338BA5
tetradic
#A5338B #A58633 #33A54D #3352A5
square
#A5338B #A58633 #33A54D #3352A5
split-complementary
#A5338B #52A533 #33A586
monochromatic
#48163C #762564 #A5338B #C84DAC #D67CC2

Accessibility & contrast

On white

6.09
#A5338B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#A5338B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A5338B
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5338B#FFFFFF#000000##FFFFFF
##A5338B1.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38578E
Deuteranopia (green-blind)
#5C6988
Tritanopia (blue-blind)
#AE385A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #a5338b;
/* rgb */ color: rgb(165, 51, 139);
/* oklch */ color: oklch(52.0% 0.177 338.3);
Tailwind
colors: {
  custom: {
    50: '#c374ad',
    500: '#a5338b',
    950: '#000000',
  },
}
SCSS
$custom: #a5338b;
$custom-light: #c374ad;
$custom-dark: #000000;
JSON
{
  "hex": "#a5338b",
  "rgb": {
    "r": 165,
    "g": 51,
    "b": 139
  },
  "hsl": {
    "h": 313.684,
    "s": 52.778,
    "l": 42.353
  },
  "oklch": {
    "l": 0.51979,
    "c": 0.17749,
    "h": 338.3
  },
  "luminance": 0.12231
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A5338B

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

Preview Lab → · Contrast checker → · Palette generator →

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