#8A236B#8A236B

#8A236B is a dark, vivid pink. Relative luminance 0.077; OKLCH L 44.6% C 0.157 H 342.6°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#8A236B
RGBrgb(138, 35, 107)
HSLhsl(318, 60%, 34%)
HSVhsv(318, 75%, 54%)
CMYKcmyk(0%, 74.6%, 22.5%, 45.9%)
CIE-LABlab(33.28, 49.97, -17.55)
CIE-LCHlch(33.28, 52.96, 340.65°)
OKLaboklab(44.57% 0.1502 -0.047)
OKLCHoklch(44.57% 0.157 342.6)
XYZxyz(13.7366, 7.6683, 14.6638)
Luminance0.0767 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A236B #238A42
analogous
#76238A #8A236B #8A2338
triadic
#8A236B #6B8A23 #236B8A
tetradic
#8A236B #8A7623 #238A42 #23388A
square
#8A236B #8A7623 #238A42 #23388A
split-complementary
#8A236B #388A23 #238A76
monochromatic
#280A1F #591745 #8A236B #BB2F91 #D454AD

Accessibility & contrast

On white

8.29
#8A236B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#8A236B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A236B
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A236B#FFFFFF#000000##FFFFFF
##8A236B1.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D436D
Deuteranopia (green-blind)
#4D5469
Tritanopia (blue-blind)
#932444
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8a236b;
/* rgb */ color: rgb(138, 35, 107);
/* oklch */ color: oklch(44.6% 0.157 342.6);
Tailwind
colors: {
  custom: {
    50: '#b06895',
    500: '#8a236b',
    950: '#000000',
  },
}
SCSS
$custom: #8a236b;
$custom-light: #b06895;
$custom-dark: #000000;
JSON
{
  "hex": "#8a236b",
  "rgb": {
    "r": 138,
    "g": 35,
    "b": 107
  },
  "hsl": {
    "h": 318.058,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.44569,
    "c": 0.15742,
    "h": 342.6
  },
  "luminance": 0.07667
}

Semantic roles & 50–950 ramp

primary
#8A236B
secondary
#51B770
accent
#E37545
background
#FBF6F9
surface
#F6EBF1
border
#D0C6CB
text
#11070D
muted
#807A7E

Preview Lab

Preview with #8A236B

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

Preview Lab → · Contrast checker → · Palette generator →

#8A236B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva