#A8238B#A8238B

#A8238B is a mid, vivid pink. Relative luminance 0.114; OKLCH L 51.1% C 0.197 H 338.8°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#A8238B
RGBrgb(168, 35, 139)
HSLhsl(313, 66%, 40%)
HSVhsv(313, 79%, 66%)
CMYKcmyk(0%, 79.2%, 17.3%, 34.1%)
CIE-LABlab(40.23, 61.84, -26.31)
CIE-LCHlch(40.23, 67.20, 336.95°)
OKLaboklab(51.1% 0.1838 -0.0713)
OKLCHoklch(51.1% 0.197 338.8)
XYZxyz(21.4102, 11.3931, 25.4926)
Luminance0.1139 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8238B #23A840
analogous
#8323A8 #A8238B #A82348
triadic
#A8238B #8BA823 #238BA8
tetradic
#A8238B #A88323 #23A840 #2348A8
square
#A8238B #A88323 #23A840 #2348A8
split-complementary
#A8238B #48A823 #23A883
monochromatic
#430E37 #751861 #A8238B #D534B2 #DF66C5

Accessibility & contrast

On white

6.41
#A8238B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A8238B
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8238B#FFFFFF#000000##FFFFFF
##A8238B1.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B528E
Deuteranopia (green-blind)
#596688
Tritanopia (blue-blind)
#B22A55
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a8238b;
/* rgb */ color: rgb(168, 35, 139);
/* oklch */ color: oklch(51.1% 0.197 338.8);
Tailwind
colors: {
  custom: {
    50: '#c66ead',
    500: '#a8238b',
    950: '#000000',
  },
}
SCSS
$custom: #a8238b;
$custom-light: #c66ead;
$custom-dark: #000000;
JSON
{
  "hex": "#a8238b",
  "rgb": {
    "r": 168,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 313.083,
    "s": 65.517,
    "l": 39.804
  },
  "oklch": {
    "l": 0.51101,
    "c": 0.19719,
    "h": 338.8
  },
  "luminance": 0.11391
}

Semantic roles & 50–950 ramp

primary
#A8238B
secondary
#62C578
accent
#E8643F
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A8238B

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

Preview Lab → · Contrast checker → · Palette generator →

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