#8A226C#8A226C

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

Color values

HEX#8A226C
RGBrgb(138, 34, 108)
HSLhsl(317, 60%, 34%)
HSVhsv(317, 75%, 54%)
CMYKcmyk(0%, 75.4%, 21.7%, 45.9%)
CIE-LABlab(33.20, 50.46, -18.31)
CIE-LCHlch(33.20, 53.68, 340.06°)
OKLaboklab(44.53% 0.1515 -0.0491)
OKLCHoklch(44.53% 0.159 342)
XYZxyz(13.7605, 7.6314, 14.9328)
Luminance0.0763 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A226C #228A40
analogous
#74228A #8A226C #8A2238
triadic
#8A226C #6C8A22 #226C8A
tetradic
#8A226C #8A7422 #228A40 #22388A
square
#8A226C #8A7422 #228A40 #22388A
split-complementary
#8A226C #388A22 #228A74
monochromatic
#280A1F #591646 #8A226C #BB2E92 #D452AF

Accessibility & contrast

On white

8.31
#8A226C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A226C
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A226C#FFFFFF#000000##FFFFFF
##8A226C1.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C436E
Deuteranopia (green-blind)
#4C546A
Tritanopia (blue-blind)
#932344
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8a226c;
/* rgb */ color: rgb(138, 34, 108);
/* oklch */ color: oklch(44.5% 0.159 342.0);
Tailwind
colors: {
  custom: {
    50: '#b06896',
    500: '#8a226c',
    950: '#000000',
  },
}
SCSS
$custom: #8a226c;
$custom-light: #b06896;
$custom-dark: #000000;
JSON
{
  "hex": "#8a226c",
  "rgb": {
    "r": 138,
    "g": 34,
    "b": 108
  },
  "hsl": {
    "h": 317.308,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.44526,
    "c": 0.15926,
    "h": 342
  },
  "luminance": 0.0763
}

Semantic roles & 50–950 ramp

primary
#8A226C
secondary
#50B86E
accent
#E47244
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070D
muted
#807A7E

Preview Lab

Preview with #8A226C

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

Preview Lab → · Contrast checker → · Palette generator →

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