#A1238F#A1238F

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

Color values

HEX#A1238F
RGBrgb(161, 35, 143)
HSLhsl(309, 64%, 38%)
HSVhsv(309, 78%, 63%)
CMYKcmyk(0%, 78.3%, 11.2%, 36.9%)
CIE-LABlab(39.18, 60.82, -30.50)
CIE-LCHlch(39.18, 68.04, 333.37°)
OKLaboklab(50.17% 0.1774 -0.0835)
OKLCHoklch(50.17% 0.196 334.8)
XYZxyz(20.2572, 10.7641, 26.9921)
Luminance0.1076 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A1238F #23A135
analogous
#7423A1 #A1238F #A12350
triadic
#A1238F #8FA123 #238FA1
tetradic
#A1238F #A17423 #23A135 #2350A1
square
#A1238F #A17423 #23A135 #2350A1
split-complementary
#A1238F #50A123 #23A174
monochromatic
#3C0D36 #6F1862 #A1238F #D22FBB #DD62CB

Accessibility & contrast

On white

6.66
#A1238F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A1238F
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A1238F#FFFFFF#000000##FFFFFF
##A1238F1.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225192
Deuteranopia (green-blind)
#51638C
Tritanopia (blue-blind)
#A92F58
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #a1238f;
/* rgb */ color: rgb(161, 35, 143);
/* oklch */ color: oklch(50.2% 0.196 334.8);
Tailwind
colors: {
  custom: {
    50: '#c16db0',
    500: '#a1238f',
    950: '#000000',
  },
}
SCSS
$custom: #a1238f;
$custom-light: #c16db0;
$custom-dark: #000000;
JSON
{
  "hex": "#a1238f",
  "rgb": {
    "r": 161,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 308.571,
    "s": 64.286,
    "l": 38.431
  },
  "oklch": {
    "l": 0.50174,
    "c": 0.19605,
    "h": 334.8
  },
  "luminance": 0.10762
}

Semantic roles & 50–950 ramp

primary
#A1238F
secondary
#5EC26C
accent
#E75841
background
#FCF7FA
surface
#F8EDF5
border
#D1C8CF
text
#130810
muted
#827B7F

Preview Lab

Preview with #A1238F

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

Preview Lab → · Contrast checker → · Palette generator →

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