#7F1773#7F1773

#7F1773 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.2% C 0.169 H 333.6°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#7F1773
RGBrgb(127, 23, 115)
HSLhsl(307, 69%, 29%)
HSVhsv(307, 82%, 50%)
CMYKcmyk(0%, 81.9%, 9.4%, 50.2%)
CIE-LABlab(30.31, 52.28, -27.43)
CIE-LCHlch(30.31, 59.04, 332.31°)
OKLaboklab(42.18% 0.1515 -0.0753)
OKLCHoklch(42.18% 0.169 333.6)
XYZxyz(12.1534, 6.3637, 16.8046)
Luminance0.0636 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1773 #177F23
analogous
#57177F #7F1773 #7F173F
triadic
#7F1773 #737F17 #17737F
tetradic
#7F1773 #7F5717 #177F23 #173F7F
square
#7F1773 #7F5717 #177F23 #173F7F
split-complementary
#7F1773 #3F7F17 #177F57
monochromatic
#1A0517 #4B0E44 #7F1773 #B320A2 #DB36C8

Accessibility & contrast

On white

9.24
#7F1773 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#7F1773 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1773
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1773#FFFFFF#000000##FFFFFF
##7F17731.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123E75
Deuteranopia (green-blind)
#3D4D71
Tritanopia (blue-blind)
#852345
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f1773;
/* rgb */ color: rgb(127, 23, 115);
/* oklch */ color: oklch(42.2% 0.169 333.6);
Tailwind
colors: {
  custom: {
    50: '#a8629b',
    500: '#7f1773',
    950: '#000000',
  },
}
SCSS
$custom: #7f1773;
$custom-light: #a8629b;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1773",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 115
  },
  "hsl": {
    "h": 306.923,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.42177,
    "c": 0.16917,
    "h": 333.6
  },
  "luminance": 0.06363
}

Semantic roles & 50–950 ramp

primary
#7F1773
secondary
#3EB44C
accent
#EC503C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1773

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

Preview Lab → · Contrast checker → · Palette generator →

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