#A8238C#A8238C

#A8238C is a mid, vivid pink. Relative luminance 0.114; OKLCH L 51.2% C 0.198 H 338.4°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#A8238C
RGBrgb(168, 35, 140)
HSLhsl(313, 66%, 40%)
HSVhsv(313, 79%, 66%)
CMYKcmyk(0%, 79.2%, 16.7%, 34.1%)
CIE-LABlab(40.28, 61.97, -26.85)
CIE-LCHlch(40.28, 67.54, 336.58°)
OKLaboklab(51.15% 0.1839 -0.0729)
OKLCHoklch(51.15% 0.198 338.4)
XYZxyz(21.4836, 11.4225, 25.8792)
Luminance0.1142 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8238C #23A83F
analogous
#8223A8 #A8238C #A82349
triadic
#A8238C #8CA823 #238CA8
tetradic
#A8238C #A88223 #23A83F #2349A8
square
#A8238C #A88223 #23A83F #2349A8
split-complementary
#A8238C #49A823 #23A882
monochromatic
#430E38 #751862 #A8238C #D534B3 #DF66C6

Accessibility & contrast

On white

6.39
#A8238C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#A8238C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A8238C
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8238C#FFFFFF#000000##FFFFFF
##A8238C1.006.393.286.39
#FFFFFF6.391.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A528F
Deuteranopia (green-blind)
#586689
Tritanopia (blue-blind)
#B22A56
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a8238c;
/* rgb */ color: rgb(168, 35, 140);
/* oklch */ color: oklch(51.2% 0.198 338.4);
Tailwind
colors: {
  custom: {
    50: '#c66eae',
    500: '#a8238c',
    950: '#000000',
  },
}
SCSS
$custom: #a8238c;
$custom-light: #c66eae;
$custom-dark: #000000;
JSON
{
  "hex": "#a8238c",
  "rgb": {
    "r": 168,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 312.632,
    "s": 65.517,
    "l": 39.804
  },
  "oklch": {
    "l": 0.51152,
    "c": 0.19785,
    "h": 338.4
  },
  "luminance": 0.1142
}

Semantic roles & 50–950 ramp

primary
#A8238C
secondary
#62C577
accent
#E8633F
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A8238C

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

Preview Lab → · Contrast checker → · Palette generator →

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