#A1238E#A1238E

#A1238E is a mid, vivid purple. Relative luminance 0.107; OKLCH L 50.1% C 0.195 H 335.2°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#A1238E
RGBrgb(161, 35, 142)
HSLhsl(309, 64%, 38%)
HSVhsv(309, 78%, 63%)
CMYKcmyk(0%, 78.3%, 11.8%, 36.9%)
CIE-LABlab(39.13, 60.67, -29.97)
CIE-LCHlch(39.13, 67.67, 333.71°)
OKLaboklab(50.12% 0.1773 -0.0819)
OKLCHoklch(50.12% 0.195 335.2)
XYZxyz(20.1817, 10.7340, 26.5949)
Luminance0.1073 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A1238E #23A136
analogous
#7523A1 #A1238E #A1234F
triadic
#A1238E #8EA123 #238EA1
tetradic
#A1238E #A17523 #23A136 #234FA1
square
#A1238E #A17523 #23A136 #234FA1
split-complementary
#A1238E #4FA123 #23A175
monochromatic
#3C0D35 #6F1862 #A1238E #D22FB9 #DD62CA

Accessibility & contrast

On white

6.67
#A1238E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#A1238E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A1238E
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A1238E#FFFFFF#000000##FFFFFF
##A1238E1.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235091
Deuteranopia (green-blind)
#52638B
Tritanopia (blue-blind)
#A92E57
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #a1238e;
/* rgb */ color: rgb(161, 35, 142);
/* oklch */ color: oklch(50.1% 0.195 335.2);
Tailwind
colors: {
  custom: {
    50: '#c16daf',
    500: '#a1238e',
    950: '#000000',
  },
}
SCSS
$custom: #a1238e;
$custom-light: #c16daf;
$custom-dark: #000000;
JSON
{
  "hex": "#a1238e",
  "rgb": {
    "r": 161,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 309.048,
    "s": 64.286,
    "l": 38.431
  },
  "oklch": {
    "l": 0.5012,
    "c": 0.19534,
    "h": 335.2
  },
  "luminance": 0.10732
}

Semantic roles & 50–950 ramp

primary
#A1238E
secondary
#5EC26D
accent
#E75A41
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A1238E

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

Preview Lab → · Contrast checker → · Palette generator →

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