#7F1776#7F1776

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

Color values

HEX#7F1776
RGBrgb(127, 23, 118)
HSLhsl(305, 69%, 29%)
HSVhsv(305, 82%, 50%)
CMYKcmyk(0%, 81.9%, 7.1%, 50.2%)
CIE-LABlab(30.48, 52.75, -29.07)
CIE-LCHlch(30.48, 60.23, 331.14°)
OKLaboklab(42.35% 0.1516 -0.08)
OKLCHoklch(42.35% 0.171 332.2)
XYZxyz(12.3289, 6.4339, 17.7286)
Luminance0.0643 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1776 #177F20
analogous
#54177F #7F1776 #7F1742
triadic
#7F1776 #767F17 #17767F
tetradic
#7F1776 #7F5417 #177F20 #17427F
square
#7F1776 #7F5417 #177F20 #17427F
split-complementary
#7F1776 #427F17 #177F54
monochromatic
#1A0518 #4B0E46 #7F1776 #B320A6 #DB36CC

Accessibility & contrast

On white

9.18
#7F1776 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F1776
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1776#FFFFFF#000000##FFFFFF
##7F17761.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E3F78
Deuteranopia (green-blind)
#3B4D74
Tritanopia (blue-blind)
#852546
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7f1776;
/* rgb */ color: rgb(127, 23, 118);
/* oklch */ color: oklch(42.4% 0.171 332.2);
Tailwind
colors: {
  custom: {
    50: '#a8629e',
    500: '#7f1776',
    950: '#000000',
  },
}
SCSS
$custom: #7f1776;
$custom-light: #a8629e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1776",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 118
  },
  "hsl": {
    "h": 305.192,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.42353,
    "c": 0.17139,
    "h": 332.2
  },
  "luminance": 0.06433
}

Semantic roles & 50–950 ramp

primary
#7F1776
secondary
#3EB448
accent
#EC4B3C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1776

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

Preview Lab → · Contrast checker → · Palette generator →

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