#8A226B#8A226B

#8A226B is a dark, vivid pink. Relative luminance 0.076; OKLCH L 44.5% C 0.159 H 342.6°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#8A226B
RGBrgb(138, 34, 107)
HSLhsl(318, 60%, 34%)
HSVhsv(318, 75%, 54%)
CMYKcmyk(0%, 75.4%, 22.5%, 45.9%)
CIE-LABlab(33.16, 50.32, -17.74)
CIE-LCHlch(33.16, 53.36, 340.58°)
OKLaboklab(44.48% 0.1513 -0.0475)
OKLCHoklch(44.48% 0.159 342.6)
XYZxyz(13.7076, 7.6103, 14.6541)
Luminance0.0761 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A226B #228A41
analogous
#75228A #8A226B #8A2237
triadic
#8A226B #6B8A22 #226B8A
tetradic
#8A226B #8A7522 #228A41 #22378A
square
#8A226B #8A7522 #228A41 #22378A
split-complementary
#8A226B #378A22 #228A75
monochromatic
#280A1F #591645 #8A226B #BB2E91 #D452AE

Accessibility & contrast

On white

8.33
#8A226B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#8A226B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A226B
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A226B#FFFFFF#000000##FFFFFF
##8A226B1.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a226b;
/* rgb */ color: rgb(138, 34, 107);
/* oklch */ color: oklch(44.5% 0.159 342.6);
Tailwind
colors: {
  custom: {
    50: '#b06895',
    500: '#8a226b',
    950: '#000000',
  },
}
SCSS
$custom: #8a226b;
$custom-light: #b06895;
$custom-dark: #000000;
JSON
{
  "hex": "#8a226b",
  "rgb": {
    "r": 138,
    "g": 34,
    "b": 107
  },
  "hsl": {
    "h": 317.885,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.44478,
    "c": 0.15861,
    "h": 342.6
  },
  "luminance": 0.07609
}

Semantic roles & 50–950 ramp

primary
#8A226B
secondary
#50B86F
accent
#E47444
background
#FBF6F9
surface
#F6EBF1
border
#D0C6CB
text
#11070D
muted
#807A7E

Preview Lab

Preview with #8A226B

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

Preview Lab → · Contrast checker → · Palette generator →

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