#7F1879#7F1879

#7F1879 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.6% C 0.173 H 330.8°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#7F1879
RGBrgb(127, 24, 121)
HSLhsl(303, 68%, 30%)
HSVhsv(303, 81%, 50%)
CMYKcmyk(0%, 81.1%, 4.7%, 50.2%)
CIE-LABlab(30.75, 52.96, -30.54)
CIE-LCHlch(30.75, 61.13, 330.03°)
OKLaboklab(42.6% 0.1508 -0.0843)
OKLCHoklch(42.6% 0.173 330.8)
XYZxyz(12.5302, 6.5468, 18.6892)
Luminance0.0655 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1879 #187F1E
analogous
#52187F #7F1879 #7F1846
triadic
#7F1879 #797F18 #18797F
tetradic
#7F1879 #7F5218 #187F1E #18467F
square
#7F1879 #7F5218 #187F1E #18467F
split-complementary
#7F1879 #467F18 #187F52
monochromatic
#1A0519 #4C0E48 #7F1879 #B222AA #D938D0

Accessibility & contrast

On white

9.09
#7F1879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#7F1879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1879
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1879#FFFFFF#000000##FFFFFF
##7F18791.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#093F7C
Deuteranopia (green-blind)
#3A4D77
Tritanopia (blue-blind)
#842748
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7f1879;
/* rgb */ color: rgb(127, 24, 121);
/* oklch */ color: oklch(42.6% 0.173 330.8);
Tailwind
colors: {
  custom: {
    50: '#a863a0',
    500: '#7f1879',
    950: '#000000',
  },
}
SCSS
$custom: #7f1879;
$custom-light: #a863a0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1879",
  "rgb": {
    "r": 127,
    "g": 24,
    "b": 121
  },
  "hsl": {
    "h": 303.495,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.42602,
    "c": 0.17274,
    "h": 330.8
  },
  "luminance": 0.06546
}

Semantic roles & 50–950 ramp

primary
#7F1879
secondary
#3FB346
accent
#EB473D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7F1879

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

Preview Lab → · Contrast checker → · Palette generator →

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