#A1238C#A1238C

#A1238C is a mid, vivid pink. Relative luminance 0.107; OKLCH L 50.0% C 0.194 H 336.0°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#A1238C
RGBrgb(161, 35, 140)
HSLhsl(310, 64%, 38%)
HSVhsv(310, 78%, 63%)
CMYKcmyk(0%, 78.3%, 13%, 36.9%)
CIE-LABlab(39.03, 60.37, -28.91)
CIE-LCHlch(39.03, 66.94, 334.42°)
OKLaboklab(50.01% 0.1772 -0.0789)
OKLCHoklch(50.01% 0.194 336)
XYZxyz(20.0329, 10.6744, 25.8112)
Luminance0.1067 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A1238C #23A138
analogous
#7723A1 #A1238C #A1234D
triadic
#A1238C #8CA123 #238CA1
tetradic
#A1238C #A17723 #23A138 #234DA1
square
#A1238C #A17723 #23A138 #234DA1
split-complementary
#A1238C #4DA123 #23A177
monochromatic
#3C0D35 #6F1860 #A1238C #D22FB7 #DD62C8

Accessibility & contrast

On white

6.70
#A1238C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#A1238C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A1238C
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A1238C#FFFFFF#000000##FFFFFF
##A1238C1.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25508F
Deuteranopia (green-blind)
#536389
Tritanopia (blue-blind)
#A92D56
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #a1238c;
/* rgb */ color: rgb(161, 35, 140);
/* oklch */ color: oklch(50.0% 0.194 336.0);
Tailwind
colors: {
  custom: {
    50: '#c16dae',
    500: '#a1238c',
    950: '#000000',
  },
}
SCSS
$custom: #a1238c;
$custom-light: #c16dae;
$custom-dark: #000000;
JSON
{
  "hex": "#a1238c",
  "rgb": {
    "r": 161,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 310,
    "s": 64.286,
    "l": 38.431
  },
  "oklch": {
    "l": 0.50014,
    "c": 0.19395,
    "h": 336
  },
  "luminance": 0.10673
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A1238C

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

Preview Lab → · Contrast checker → · Palette generator →

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