#A8238E#A8238E

#A8238E is a mid, vivid pink. Relative luminance 0.115; OKLCH L 51.3% C 0.199 H 337.6°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#A8238E
RGBrgb(168, 35, 142)
HSLhsl(312, 66%, 40%)
HSVhsv(312, 79%, 66%)
CMYKcmyk(0%, 79.2%, 15.5%, 34.1%)
CIE-LABlab(40.38, 62.26, -27.92)
CIE-LCHlch(40.38, 68.23, 335.85°)
OKLaboklab(51.25% 0.1841 -0.0759)
OKLCHoklch(51.25% 0.199 337.6)
XYZxyz(21.6324, 11.4820, 26.6629)
Luminance0.1148 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8238E #23A83D
analogous
#7F23A8 #A8238E #A8234C
triadic
#A8238E #8EA823 #238EA8
tetradic
#A8238E #A87F23 #23A83D #234CA8
square
#A8238E #A87F23 #23A83D #234CA8
split-complementary
#A8238E #4CA823 #23A87F
monochromatic
#430E38 #751863 #A8238E #D534B5 #DF66C8

Accessibility & contrast

On white

6.37
#A8238E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#A8238E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A8238E
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8238E#FFFFFF#000000##FFFFFF
##A8238E1.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295291
Deuteranopia (green-blind)
#58668B
Tritanopia (blue-blind)
#B12C57
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a8238e;
/* rgb */ color: rgb(168, 35, 142);
/* oklch */ color: oklch(51.3% 0.199 337.6);
Tailwind
colors: {
  custom: {
    50: '#c66eaf',
    500: '#a8238e',
    950: '#000000',
  },
}
SCSS
$custom: #a8238e;
$custom-light: #c66eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#a8238e",
  "rgb": {
    "r": 168,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 311.729,
    "s": 65.517,
    "l": 39.804
  },
  "oklch": {
    "l": 0.51254,
    "c": 0.19917,
    "h": 337.6
  },
  "luminance": 0.1148
}

Semantic roles & 50–950 ramp

primary
#A8238E
secondary
#62C575
accent
#E8603F
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A8238E

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

Preview Lab → · Contrast checker → · Palette generator →

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