#8A1338#8A1338

#8A1338 is a dark, vivid pink. Relative luminance 0.062; OKLCH L 41.4% C 0.152 H 10.2°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#8A1338
RGBrgb(138, 19, 56)
HSLhsl(341, 76%, 31%)
HSVhsv(341, 86%, 54%)
CMYKcmyk(0%, 86.2%, 59.4%, 45.9%)
CIE-LABlab(29.80, 49.36, 10.72)
CIE-LCHlch(29.80, 50.51, 12.25°)
OKLaboklab(41.44% 0.1497 0.0268)
OKLCHoklch(41.44% 0.152 10.2)
XYZxyz(11.4291, 6.1563, 4.3271)
Luminance0.0616 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1338 #138A65
analogous
#8A1373 #8A1338 #8A2A13
triadic
#8A1338 #388A13 #13388A
tetradic
#8A1338 #738A13 #138A65 #2A138A
square
#8A1338 #738A13 #138A65 #2A138A
split-complementary
#8A1338 #138A2A #13738A
monochromatic
#1E040C #540C22 #8A1338 #C01A4E #E3346B

Accessibility & contrast

On white

9.41
#8A1338 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#8A1338 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1338
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1338#FFFFFF#000000##FFFFFF
##8A13381.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#363739
Deuteranopia (green-blind)
#554F35
Tritanopia (blue-blind)
#970024
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #8a1338;
/* rgb */ color: rgb(138, 19, 56);
/* oklch */ color: oklch(41.4% 0.152 10.2);
Tailwind
colors: {
  custom: {
    50: '#b3616e',
    500: '#8a1338',
    950: '#000000',
  },
}
SCSS
$custom: #8a1338;
$custom-light: #b3616e;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1338",
  "rgb": {
    "r": 138,
    "g": 19,
    "b": 56
  },
  "hsl": {
    "h": 341.345,
    "s": 75.796,
    "l": 30.784
  },
  "oklch": {
    "l": 0.41444,
    "c": 0.15209,
    "h": 10.2
  },
  "luminance": 0.06155
}

Semantic roles & 50–950 ramp

primary
#8A1338
secondary
#3ABE95
accent
#F2B835
background
#FBF6F6
surface
#F6EBEB
border
#D0C6C6
text
#120607
muted
#817A7A

Preview Lab

Preview with #8A1338

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

Preview Lab → · Contrast checker → · Palette generator →

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