#A2338E#A2338E

#A2338E is a mid, vivid pink. Relative luminance 0.120; OKLCH L 51.7% C 0.178 H 335.9°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#A2338E
RGBrgb(162, 51, 142)
HSLhsl(311, 52%, 42%)
HSVhsv(311, 69%, 64%)
CMYKcmyk(0%, 68.5%, 12.3%, 36.5%)
CIE-LABlab(41.22, 55.47, -26.68)
CIE-LCHlch(41.22, 61.55, 334.31°)
OKLaboklab(51.67% 0.1622 -0.0726)
OKLCHoklch(51.67% 0.178 335.9)
XYZxyz(20.9669, 12.0038, 26.7986)
Luminance0.1200 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2338E #33A247
analogous
#7F33A2 #A2338E #A23357
triadic
#A2338E #8EA233 #338EA2
tetradic
#A2338E #A27F33 #33A247 #3357A2
square
#A2338E #A27F33 #33A247 #3357A2
split-complementary
#A2338E #57A233 #33A27F
monochromatic
#45163C #732465 #A2338E #C74CB0 #D57AC5

Accessibility & contrast

On white

6.18
#A2338E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#A2338E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A2338E
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2338E#FFFFFF#000000##FFFFFF
##A2338E1.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345791
Deuteranopia (green-blind)
#59678B
Tritanopia (blue-blind)
#AA3A5C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #a2338e;
/* rgb */ color: rgb(162, 51, 142);
/* oklch */ color: oklch(51.7% 0.178 335.9);
Tailwind
colors: {
  custom: {
    50: '#c174af',
    500: '#a2338e',
    950: '#000000',
  },
}
SCSS
$custom: #a2338e;
$custom-light: #c174af;
$custom-dark: #000000;
JSON
{
  "hex": "#a2338e",
  "rgb": {
    "r": 162,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 310.811,
    "s": 52.113,
    "l": 41.765
  },
  "oklch": {
    "l": 0.51665,
    "c": 0.17772,
    "h": 335.9
  },
  "luminance": 0.12002
}

Semantic roles & 50–950 ramp

primary
#A2338E
secondary
#73BE80
accent
#DC664C
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130910
muted
#827B7F

Preview Lab

Preview with #A2338E

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

Preview Lab → · Contrast checker → · Palette generator →

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