#8A1F7C#8A1F7C

#8A1F7C is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.1% C 0.174 H 334.1°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#8A1F7C
RGBrgb(138, 31, 124)
HSLhsl(308, 63%, 33%)
HSVhsv(308, 78%, 54%)
CMYKcmyk(0%, 77.5%, 10.1%, 45.9%)
CIE-LABlab(33.65, 53.84, -27.73)
CIE-LCHlch(33.65, 60.56, 332.75°)
OKLaboklab(45.1% 0.1564 -0.076)
OKLCHoklch(45.1% 0.174 334.1)
XYZxyz(14.6095, 7.8398, 19.8087)
Luminance0.0784 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F7C #1F8A2D
analogous
#621F8A #8A1F7C #8A1F47
triadic
#8A1F7C #7C8A1F #1F7C8A
tetradic
#8A1F7C #8A621F #1F8A2D #1F478A
square
#8A1F7C #8A621F #1F8A2D #1F478A
split-complementary
#8A1F7C #478A1F #1F8A62
monochromatic
#260922 #58144F #8A1F7C #BC2AA9 #D74CC5

Accessibility & contrast

On white

8.18
#8A1F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#8A1F7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1F7C
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F7C#FFFFFF#000000##FFFFFF
##8A1F7C1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C457E
Deuteranopia (green-blind)
#455579
Tritanopia (blue-blind)
#91294C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8a1f7c;
/* rgb */ color: rgb(138, 31, 124);
/* oklch */ color: oklch(45.1% 0.174 334.1);
Tailwind
colors: {
  custom: {
    50: '#b067a2',
    500: '#8a1f7c',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f7c;
$custom-light: #b067a2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f7c",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 124
  },
  "hsl": {
    "h": 307.85,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.45104,
    "c": 0.17385,
    "h": 334.1
  },
  "luminance": 0.07838
}

Semantic roles & 50–950 ramp

primary
#8A1F7C
secondary
#4BBA5A
accent
#E65741
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A1F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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