#7F1876#7F1876

#7F1876 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.4% C 0.170 H 332.2°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#7F1876
RGBrgb(127, 24, 118)
HSLhsl(305, 68%, 30%)
HSVhsv(305, 81%, 50%)
CMYKcmyk(0%, 81.1%, 7.1%, 50.2%)
CIE-LABlab(30.58, 52.47, -28.92)
CIE-LCHlch(30.58, 59.91, 331.14°)
OKLaboklab(42.42% 0.1507 -0.0796)
OKLCHoklch(42.42% 0.17 332.2)
XYZxyz(12.3491, 6.4744, 17.7353)
Luminance0.0647 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1876 #187F21
analogous
#55187F #7F1876 #7F1842
triadic
#7F1876 #767F18 #18767F
tetradic
#7F1876 #7F5518 #187F21 #18427F
square
#7F1876 #7F5518 #187F21 #18427F
split-complementary
#7F1876 #427F18 #187F55
monochromatic
#1A0518 #4C0E46 #7F1876 #B222A6 #D938CB

Accessibility & contrast

On white

9.15
#7F1876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7F1876 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1876
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1876#FFFFFF#000000##FFFFFF
##7F18761.009.152.299.15
#FFFFFF9.151.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F3F78
Deuteranopia (green-blind)
#3C4D74
Tritanopia (blue-blind)
#852547
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7f1876;
/* rgb */ color: rgb(127, 24, 118);
/* oklch */ color: oklch(42.4% 0.170 332.2);
Tailwind
colors: {
  custom: {
    50: '#a8639e',
    500: '#7f1876',
    950: '#000000',
  },
}
SCSS
$custom: #7f1876;
$custom-light: #a8639e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1876",
  "rgb": {
    "r": 127,
    "g": 24,
    "b": 118
  },
  "hsl": {
    "h": 305.243,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.42422,
    "c": 0.17046,
    "h": 332.2
  },
  "luminance": 0.06473
}

Semantic roles & 50–950 ramp

primary
#7F1876
secondary
#3FB34A
accent
#EB4C3D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1876

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

Preview Lab → · Contrast checker → · Palette generator →

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