#7F1174#7F1174

#7F1174 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.9% C 0.175 H 333.1°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#7F1174
RGBrgb(127, 17, 116)
HSLhsl(306, 76%, 28%)
HSVhsv(306, 87%, 50%)
CMYKcmyk(0%, 86.6%, 8.7%, 50.2%)
CIE-LABlab(29.85, 53.94, -28.80)
CIE-LCHlch(29.85, 61.14, 331.90°)
OKLaboklab(41.87% 0.1559 -0.0792)
OKLCHoklch(41.87% 0.175 333.1)
XYZxyz(12.1053, 6.1750, 17.0740)
Luminance0.0617 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1174 #117F1C
analogous
#53117F #7F1174 #7F113D
triadic
#7F1174 #747F11 #11747F
tetradic
#7F1174 #7F5311 #117F1C #113D7F
square
#7F1174 #7F5311 #117F1C #113D7F
split-complementary
#7F1174 #3D7F11 #117F53
monochromatic
#1B0419 #490A43 #7F1174 #B518A5 #E228D0

Accessibility & contrast

On white

9.40
#7F1174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#7F1174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1174
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1174#FFFFFF#000000##FFFFFF
##7F11741.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#083D76
Deuteranopia (green-blind)
#3A4C72
Tritanopia (blue-blind)
#852044
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7f1174;
/* rgb */ color: rgb(127, 17, 116);
/* oklch */ color: oklch(41.9% 0.175 333.1);
Tailwind
colors: {
  custom: {
    50: '#a8619c',
    500: '#7f1174',
    950: '#000000',
  },
}
SCSS
$custom: #7f1174;
$custom-light: #a8619c;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1174",
  "rgb": {
    "r": 127,
    "g": 17,
    "b": 116
  },
  "hsl": {
    "h": 306,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.41865,
    "c": 0.1749,
    "h": 333.1
  },
  "luminance": 0.06174
}

Semantic roles & 50–950 ramp

primary
#7F1174
secondary
#37B543
accent
#F34835
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1174

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

Preview Lab → · Contrast checker → · Palette generator →

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