#8A1838#8A1838

#8A1838 is a dark, vivid pink. Relative luminance 0.063; OKLCH L 41.8% C 0.148 H 11.0°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#8A1838
RGBrgb(138, 24, 56)
HSLhsl(343, 70%, 32%)
HSVhsv(343, 83%, 54%)
CMYKcmyk(0%, 82.6%, 59.4%, 45.9%)
CIE-LABlab(30.26, 48.05, 11.35)
CIE-LCHlch(30.26, 49.37, 13.29°)
OKLaboklab(41.78% 0.1455 0.0283)
OKLCHoklch(41.78% 0.148 11)
XYZxyz(11.5228, 6.3438, 4.3583)
Luminance0.0634 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1838 #188A6A
analogous
#8A1871 #8A1838 #8A3118
triadic
#8A1838 #388A18 #18388A
tetradic
#8A1838 #718A18 #188A6A #31188A
square
#8A1838 #718A18 #188A6A #31188A
split-complementary
#8A1838 #188A31 #18718A
monochromatic
#22060E #560F23 #8A1838 #BE214D #DE3F6B

Accessibility & contrast

On white

9.26
#8A1838 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#8A1838 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1838
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1838#FFFFFF#000000##FFFFFF
##8A18381.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#383838
Deuteranopia (green-blind)
#565035
Tritanopia (blue-blind)
#970026
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #8a1838;
/* rgb */ color: rgb(138, 24, 56);
/* oklch */ color: oklch(41.8% 0.148 11.0);
Tailwind
colors: {
  custom: {
    50: '#b3626e',
    500: '#8a1838',
    950: '#000000',
  },
}
SCSS
$custom: #8a1838;
$custom-light: #b3626e;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1838",
  "rgb": {
    "r": 138,
    "g": 24,
    "b": 56
  },
  "hsl": {
    "h": 343.158,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.41783,
    "c": 0.1482,
    "h": 11
  },
  "luminance": 0.06342
}

Semantic roles & 50–950 ramp

primary
#8A1838
secondary
#40BD9A
accent
#EDBB3B
background
#FBF6F6
surface
#F6EBEB
border
#D0C6C6
text
#120607
muted
#817A7A

Preview Lab

Preview with #8A1838

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

Preview Lab → · Contrast checker → · Palette generator →

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