#A2238F#A2238F

#A2238F is a mid, vivid purple. Relative luminance 0.109; OKLCH L 50.3% C 0.197 H 335.1°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#A2238F
RGBrgb(162, 35, 143)
HSLhsl(309, 64%, 39%)
HSVhsv(309, 78%, 64%)
CMYKcmyk(0%, 78.4%, 11.7%, 36.5%)
CIE-LABlab(39.36, 61.04, -30.21)
CIE-LCHlch(39.36, 68.11, 333.67°)
OKLaboklab(50.33% 0.1784 -0.0826)
OKLCHoklch(50.33% 0.197 335.1)
XYZxyz(20.4595, 10.8685, 27.0016)
Luminance0.1087 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2238F #23A236
analogous
#7523A2 #A2238F #A2234F
triadic
#A2238F #8FA223 #238FA2
tetradic
#A2238F #A27523 #23A236 #234FA2
square
#A2238F #A27523 #23A236 #234FA2
split-complementary
#A2238F #4FA223 #23A275
monochromatic
#3D0D36 #701863 #A2238F #D230BA #DD62CB

Accessibility & contrast

On white

6.62
#A2238F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#A2238F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A2238F
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2238F#FFFFFF#000000##FFFFFF
##A2238F1.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235192
Deuteranopia (green-blind)
#52638C
Tritanopia (blue-blind)
#AA2E58
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #a2238f;
/* rgb */ color: rgb(162, 35, 143);
/* oklch */ color: oklch(50.3% 0.197 335.1);
Tailwind
colors: {
  custom: {
    50: '#c16db0',
    500: '#a2238f',
    950: '#000000',
  },
}
SCSS
$custom: #a2238f;
$custom-light: #c16db0;
$custom-dark: #000000;
JSON
{
  "hex": "#a2238f",
  "rgb": {
    "r": 162,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 308.976,
    "s": 64.467,
    "l": 38.627
  },
  "oklch": {
    "l": 0.50335,
    "c": 0.19658,
    "h": 335.1
  },
  "luminance": 0.10867
}

Semantic roles & 50–950 ramp

primary
#A2238F
secondary
#5EC26D
accent
#E75940
background
#FCF7FA
surface
#F8EDF5
border
#D1C8CF
text
#130810
muted
#827B7F

Preview Lab

Preview with #A2238F

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

Preview Lab → · Contrast checker → · Palette generator →

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