#8A1F79#8A1F79

#8A1F79 is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.9% C 0.172 H 335.5°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#8A1F79
RGBrgb(138, 31, 121)
HSLhsl(310, 63%, 33%)
HSVhsv(310, 78%, 54%)
CMYKcmyk(0%, 77.5%, 12.3%, 45.9%)
CIE-LABlab(33.49, 53.38, -26.09)
CIE-LCHlch(33.49, 59.41, 333.95°)
OKLaboklab(44.94% 0.1562 -0.0713)
OKLCHoklch(44.94% 0.172 335.5)
XYZxyz(14.4226, 7.7650, 18.8247)
Luminance0.0776 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F79 #1F8A30
analogous
#651F8A #8A1F79 #8A1F43
triadic
#8A1F79 #798A1F #1F798A
tetradic
#8A1F79 #8A651F #1F8A30 #1F438A
square
#8A1F79 #8A651F #1F8A30 #1F438A
split-complementary
#8A1F79 #438A1F #1F8A65
monochromatic
#260921 #58144D #8A1F79 #BC2AA5 #D74CC1

Accessibility & contrast

On white

8.23
#8A1F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#8A1F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1F79
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F79#FFFFFF#000000##FFFFFF
##8A1F791.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F457B
Deuteranopia (green-blind)
#465477
Tritanopia (blue-blind)
#91284A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8a1f79;
/* rgb */ color: rgb(138, 31, 121);
/* oklch */ color: oklch(44.9% 0.172 335.5);
Tailwind
colors: {
  custom: {
    50: '#b067a0',
    500: '#8a1f79',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f79;
$custom-light: #b067a0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f79",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 121
  },
  "hsl": {
    "h": 309.533,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44939,
    "c": 0.17166,
    "h": 335.5
  },
  "luminance": 0.07764
}

Semantic roles & 50–950 ramp

primary
#8A1F79
secondary
#4BBA5D
accent
#E65C41
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A1F79

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

Preview Lab → · Contrast checker → · Palette generator →

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