#7F1872#7F1872

#7F1872 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.2% C 0.167 H 334.0°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#7F1872
RGBrgb(127, 24, 114)
HSLhsl(308, 68%, 30%)
HSVhsv(308, 81%, 50%)
CMYKcmyk(0%, 81.1%, 10.2%, 50.2%)
CIE-LABlab(30.35, 51.84, -26.73)
CIE-LCHlch(30.35, 58.32, 332.72°)
OKLaboklab(42.19% 0.1506 -0.0733)
OKLCHoklch(42.19% 0.167 334)
XYZxyz(12.1164, 6.3813, 16.5099)
Luminance0.0638 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1872 #187F25
analogous
#59187F #7F1872 #7F183E
triadic
#7F1872 #727F18 #18727F
tetradic
#7F1872 #7F5918 #187F25 #183E7F
square
#7F1872 #7F5918 #187F25 #183E7F
split-complementary
#7F1872 #3E7F18 #187F59
monochromatic
#1A0517 #4C0E44 #7F1872 #B222A0 #D938C5

Accessibility & contrast

On white

9.23
#7F1872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#7F1872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1872
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1872#FFFFFF#000000##FFFFFF
##7F18721.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153E74
Deuteranopia (green-blind)
#3E4D70
Tritanopia (blue-blind)
#852344
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f1872;
/* rgb */ color: rgb(127, 24, 114);
/* oklch */ color: oklch(42.2% 0.167 334.0);
Tailwind
colors: {
  custom: {
    50: '#a8639b',
    500: '#7f1872',
    950: '#000000',
  },
}
SCSS
$custom: #7f1872;
$custom-light: #a8639b;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1872",
  "rgb": {
    "r": 127,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 307.573,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.42189,
    "c": 0.16749,
    "h": 334
  },
  "luminance": 0.0638
}

Semantic roles & 50–950 ramp

primary
#7F1872
secondary
#3FB34E
accent
#EB533D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1872

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

Preview Lab → · Contrast checker → · Palette generator →

#7F1872 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva