#A8238D#A8238D

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

Color values

HEX#A8238D
RGBrgb(168, 35, 141)
HSLhsl(312, 66%, 40%)
HSVhsv(312, 79%, 66%)
CMYKcmyk(0%, 79.2%, 16.1%, 34.1%)
CIE-LABlab(40.33, 62.11, -27.38)
CIE-LCHlch(40.33, 67.88, 336.21°)
OKLaboklab(51.2% 0.184 -0.0744)
OKLCHoklch(51.2% 0.199 338)
XYZxyz(21.5577, 11.4521, 26.2693)
Luminance0.1145 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8238D #23A83E
analogous
#8023A8 #A8238D #A8234B
triadic
#A8238D #8DA823 #238DA8
tetradic
#A8238D #A88023 #23A83E #234BA8
square
#A8238D #A88023 #23A83E #234BA8
split-complementary
#A8238D #4BA823 #23A880
monochromatic
#430E38 #751862 #A8238D #D534B4 #DF66C7

Accessibility & contrast

On white

6.38
#A8238D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#A8238D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A8238D
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8238D#FFFFFF#000000##FFFFFF
##A8238D1.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5290
Deuteranopia (green-blind)
#58668A
Tritanopia (blue-blind)
#B22B57
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a8238d;
/* rgb */ color: rgb(168, 35, 141);
/* oklch */ color: oklch(51.2% 0.199 338.0);
Tailwind
colors: {
  custom: {
    50: '#c66eae',
    500: '#a8238d',
    950: '#000000',
  },
}
SCSS
$custom: #a8238d;
$custom-light: #c66eae;
$custom-dark: #000000;
JSON
{
  "hex": "#a8238d",
  "rgb": {
    "r": 168,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 312.18,
    "s": 65.517,
    "l": 39.804
  },
  "oklch": {
    "l": 0.51202,
    "c": 0.19851,
    "h": 338
  },
  "luminance": 0.1145
}

Semantic roles & 50–950 ramp

primary
#A8238D
secondary
#62C576
accent
#E8623F
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A8238D

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

Preview Lab → · Contrast checker → · Palette generator →

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