#8A2F74#8A2F74

#8A2F74 is a mid, vivid pink. Relative luminance 0.087; OKLCH L 46.2% C 0.148 H 338.6°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#8A2F74
RGBrgb(138, 47, 116)
HSLhsl(315, 49%, 36%)
HSVhsv(315, 66%, 54%)
CMYKcmyk(0%, 65.9%, 15.9%, 45.9%)
CIE-LABlab(35.40, 46.55, -19.97)
CIE-LCHlch(35.40, 50.65, 336.78°)
OKLaboklab(46.24% 0.1375 -0.054)
OKLCHoklch(46.24% 0.148 338.6)
XYZxyz(14.6504, 8.6985, 17.4270)
Luminance0.0870 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2F74 #2F8A45
analogous
#732F8A #8A2F74 #8A2F47
triadic
#8A2F74 #748A2F #2F748A
tetradic
#8A2F74 #8A732F #2F8A45 #2F478A
square
#8A2F74 #8A732F #2F8A45 #2F478A
split-complementary
#8A2F74 #478A2F #2F8A73
monochromatic
#2F1027 #5C1F4E #8A2F74 #B83F9A #CC68B3

Accessibility & contrast

On white

7.67
#8A2F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#8A2F74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2F74
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2F74#FFFFFF#000000##FFFFFF
##8A2F741.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334A76
Deuteranopia (green-blind)
#4F5872
Tritanopia (blue-blind)
#92324D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a2f74;
/* rgb */ color: rgb(138, 47, 116);
/* oklch */ color: oklch(46.2% 0.148 338.6);
Tailwind
colors: {
  custom: {
    50: '#af6e9c',
    500: '#8a2f74',
    950: '#000000',
  },
}
SCSS
$custom: #8a2f74;
$custom-light: #af6e9c;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2f74",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 116
  },
  "hsl": {
    "h": 314.505,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.46244,
    "c": 0.14768,
    "h": 338.6
  },
  "luminance": 0.08697
}

Semantic roles & 50–950 ramp

primary
#8A2F74
secondary
#62B376
accent
#D9704F
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11080E
muted
#807B7E

Preview Lab

Preview with #8A2F74

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

Preview Lab → · Contrast checker → · Palette generator →

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