#8A1238#8A1238

#8A1238 is a dark, vivid pink. Relative luminance 0.061; OKLCH L 41.4% C 0.153 H 10.0°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#8A1238
RGBrgb(138, 18, 56)
HSLhsl(341, 77%, 31%)
HSVhsv(341, 87%, 54%)
CMYKcmyk(0%, 87%, 59.4%, 45.9%)
CIE-LABlab(29.72, 49.60, 10.61)
CIE-LCHlch(29.72, 50.72, 12.07°)
OKLaboklab(41.38% 0.1505 0.0266)
OKLCHoklch(41.38% 0.153 10)
XYZxyz(11.4125, 6.1231, 4.3216)
Luminance0.0612 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1238 #128A64
analogous
#8A1274 #8A1238 #8A2812
triadic
#8A1238 #388A12 #12388A
tetradic
#8A1238 #748A12 #128A64 #28128A
square
#8A1238 #748A12 #128A64 #28128A
split-complementary
#8A1238 #128A28 #12748A
monochromatic
#1E040C #540B22 #8A1238 #C0194E #E4326B

Accessibility & contrast

On white

9.44
#8A1238 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#8A1238 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1238
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1238#FFFFFF#000000##FFFFFF
##8A12381.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a1238;
/* rgb */ color: rgb(138, 18, 56);
/* oklch */ color: oklch(41.4% 0.153 10.0);
Tailwind
colors: {
  custom: {
    50: '#b3606e',
    500: '#8a1238',
    950: '#000000',
  },
}
SCSS
$custom: #8a1238;
$custom-light: #b3606e;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1238",
  "rgb": {
    "r": 138,
    "g": 18,
    "b": 56
  },
  "hsl": {
    "h": 341,
    "s": 76.923,
    "l": 30.588
  },
  "oklch": {
    "l": 0.41384,
    "c": 0.1528,
    "h": 10
  },
  "luminance": 0.06121
}

Semantic roles & 50–950 ramp

primary
#8A1238
secondary
#39BF94
accent
#F3B734
background
#FBF6F6
surface
#F6EBEB
border
#D0C6C6
text
#120507
muted
#817A7A

Preview Lab

Preview with #8A1238

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

Preview Lab → · Contrast checker → · Palette generator →

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