#8A236C#8A236C

#8A236C is a dark, vivid pink. Relative luminance 0.077; OKLCH L 44.6% C 0.158 H 342.1°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#8A236C
RGBrgb(138, 35, 108)
HSLhsl(317, 60%, 34%)
HSVhsv(317, 75%, 54%)
CMYKcmyk(0%, 74.6%, 21.7%, 45.9%)
CIE-LABlab(33.33, 50.11, -18.11)
CIE-LCHlch(33.33, 53.28, 340.13°)
OKLaboklab(44.62% 0.1504 -0.0486)
OKLCHoklch(44.62% 0.158 342.1)
XYZxyz(13.7895, 7.6894, 14.9424)
Luminance0.0769 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A236C #238A41
analogous
#75238A #8A236C #8A2339
triadic
#8A236C #6C8A23 #236C8A
tetradic
#8A236C #8A7523 #238A41 #23398A
square
#8A236C #8A7523 #238A41 #23398A
split-complementary
#8A236C #398A23 #238A75
monochromatic
#280A20 #591746 #8A236C #BB2F92 #D454AE

Accessibility & contrast

On white

8.28
#8A236C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#8A236C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A236C
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A236C#FFFFFF#000000##FFFFFF
##8A236C1.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C446E
Deuteranopia (green-blind)
#4D546A
Tritanopia (blue-blind)
#932444
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8a236c;
/* rgb */ color: rgb(138, 35, 108);
/* oklch */ color: oklch(44.6% 0.158 342.1);
Tailwind
colors: {
  custom: {
    50: '#b06896',
    500: '#8a236c',
    950: '#000000',
  },
}
SCSS
$custom: #8a236c;
$custom-light: #b06896;
$custom-dark: #000000;
JSON
{
  "hex": "#8a236c",
  "rgb": {
    "r": 138,
    "g": 35,
    "b": 108
  },
  "hsl": {
    "h": 317.476,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.44616,
    "c": 0.15807,
    "h": 342.1
  },
  "luminance": 0.07688
}

Semantic roles & 50–950 ramp

primary
#8A236C
secondary
#51B76F
accent
#E37345
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070D
muted
#807A7E

Preview Lab

Preview with #8A236C

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

Preview Lab → · Contrast checker → · Palette generator →

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