#A2238E#A2238E

#A2238E is a mid, vivid purple. Relative luminance 0.108; OKLCH L 50.3% C 0.196 H 335.5°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#A2238E
RGBrgb(162, 35, 142)
HSLhsl(309, 64%, 39%)
HSVhsv(309, 78%, 64%)
CMYKcmyk(0%, 78.4%, 12.3%, 36.5%)
CIE-LABlab(39.31, 60.90, -29.68)
CIE-LCHlch(39.31, 67.74, 334.02°)
OKLaboklab(50.28% 0.1783 -0.0811)
OKLCHoklch(50.28% 0.196 335.5)
XYZxyz(20.3841, 10.8383, 26.6044)
Luminance0.1084 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2238E #23A237
analogous
#7623A2 #A2238E #A2234E
triadic
#A2238E #8EA223 #238EA2
tetradic
#A2238E #A27623 #23A237 #234EA2
square
#A2238E #A27623 #23A237 #234EA2
split-complementary
#A2238E #4EA223 #23A276
monochromatic
#3D0D36 #701862 #A2238E #D230B9 #DD62CA

Accessibility & contrast

On white

6.63
#A2238E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A2238E
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2238E#FFFFFF#000000##FFFFFF
##A2238E1.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245191
Deuteranopia (green-blind)
#53638B
Tritanopia (blue-blind)
#AA2E57
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #a2238e;
/* rgb */ color: rgb(162, 35, 142);
/* oklch */ color: oklch(50.3% 0.196 335.5);
Tailwind
colors: {
  custom: {
    50: '#c16daf',
    500: '#a2238e',
    950: '#000000',
  },
}
SCSS
$custom: #a2238e;
$custom-light: #c16daf;
$custom-dark: #000000;
JSON
{
  "hex": "#a2238e",
  "rgb": {
    "r": 162,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 309.449,
    "s": 64.467,
    "l": 38.627
  },
  "oklch": {
    "l": 0.50282,
    "c": 0.19588,
    "h": 335.5
  },
  "luminance": 0.10836
}

Semantic roles & 50–950 ramp

primary
#A2238E
secondary
#5EC26E
accent
#E75B40
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A2238E

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

Preview Lab → · Contrast checker → · Palette generator →

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