#A2238D#A2238D

#A2238D is a mid, vivid purple. Relative luminance 0.108; OKLCH L 50.2% C 0.195 H 335.9°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#A2238D
RGBrgb(162, 35, 141)
HSLhsl(310, 64%, 39%)
HSVhsv(310, 78%, 64%)
CMYKcmyk(0%, 78.4%, 13%, 36.5%)
CIE-LABlab(39.26, 60.75, -29.15)
CIE-LCHlch(39.26, 67.38, 334.37°)
OKLaboklab(50.23% 0.1782 -0.0796)
OKLCHoklch(50.23% 0.195 335.9)
XYZxyz(20.3094, 10.8084, 26.2108)
Luminance0.1081 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2238D #23A238
analogous
#7723A2 #A2238D #A2234D
triadic
#A2238D #8DA223 #238DA2
tetradic
#A2238D #A27723 #23A238 #234DA2
square
#A2238D #A27723 #23A238 #234DA2
split-complementary
#A2238D #4DA223 #23A277
monochromatic
#3D0D35 #701861 #A2238D #D230B7 #DD62C9

Accessibility & contrast

On white

6.64
#A2238D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#A2238D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A2238D
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2238D#FFFFFF#000000##FFFFFF
##A2238D1.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255090
Deuteranopia (green-blind)
#53638A
Tritanopia (blue-blind)
#AB2D57
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #a2238d;
/* rgb */ color: rgb(162, 35, 141);
/* oklch */ color: oklch(50.2% 0.195 335.9);
Tailwind
colors: {
  custom: {
    50: '#c16dae',
    500: '#a2238d',
    950: '#000000',
  },
}
SCSS
$custom: #a2238d;
$custom-light: #c16dae;
$custom-dark: #000000;
JSON
{
  "hex": "#a2238d",
  "rgb": {
    "r": 162,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 309.921,
    "s": 64.467,
    "l": 38.627
  },
  "oklch": {
    "l": 0.50229,
    "c": 0.19519,
    "h": 335.9
  },
  "luminance": 0.10807
}

Semantic roles & 50–950 ramp

primary
#A2238D
secondary
#5EC26F
accent
#E75C40
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A2238D

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

Preview Lab → · Contrast checker → · Palette generator →

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