#7F1176#7F1176

#7F1176 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 42.0% C 0.176 H 332.1°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#7F1176
RGBrgb(127, 17, 118)
HSLhsl(305, 76%, 28%)
HSVhsv(305, 87%, 50%)
CMYKcmyk(0%, 86.6%, 7.1%, 50.2%)
CIE-LABlab(29.97, 54.25, -29.89)
CIE-LCHlch(29.97, 61.94, 331.15°)
OKLaboklab(41.99% 0.1559 -0.0824)
OKLCHoklch(41.99% 0.176 332.1)
XYZxyz(12.2229, 6.2220, 17.6932)
Luminance0.0622 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1176 #117F1A
analogous
#51117F #7F1176 #7F113F
triadic
#7F1176 #767F11 #11767F
tetradic
#7F1176 #7F5111 #117F1A #113F7F
square
#7F1176 #7F5111 #117F1A #113F7F
split-complementary
#7F1176 #3F7F11 #117F51
monochromatic
#1B0419 #490A44 #7F1176 #B518A8 #E228D3

Accessibility & contrast

On white

9.36
#7F1176 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#7F1176 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1176
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1176#FFFFFF#000000##FFFFFF
##7F11761.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#043D78
Deuteranopia (green-blind)
#394C74
Tritanopia (blue-blind)
#852145
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f1176;
/* rgb */ color: rgb(127, 17, 118);
/* oklch */ color: oklch(42.0% 0.176 332.1);
Tailwind
colors: {
  custom: {
    50: '#a8619e',
    500: '#7f1176',
    950: '#000000',
  },
}
SCSS
$custom: #7f1176;
$custom-light: #a8619e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1176",
  "rgb": {
    "r": 127,
    "g": 17,
    "b": 118
  },
  "hsl": {
    "h": 304.909,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.41985,
    "c": 0.17634,
    "h": 332.1
  },
  "luminance": 0.06221
}

Semantic roles & 50–950 ramp

primary
#7F1176
secondary
#37B541
accent
#F34435
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1176

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

Preview Lab → · Contrast checker → · Palette generator →

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