#7F1973#7F1973

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

Color values

HEX#7F1973
RGBrgb(127, 25, 115)
HSLhsl(307, 67%, 30%)
HSVhsv(307, 80%, 50%)
CMYKcmyk(0%, 80.3%, 9.4%, 50.2%)
CIE-LABlab(30.51, 51.70, -27.12)
CIE-LCHlch(30.51, 58.38, 332.32°)
OKLaboklab(42.32% 0.1498 -0.0744)
OKLCHoklch(42.32% 0.167 333.6)
XYZxyz(12.1946, 6.4462, 16.8183)
Luminance0.0644 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1973 #197F25
analogous
#58197F #7F1973 #7F1940
triadic
#7F1973 #737F19 #19737F
tetradic
#7F1973 #7F5819 #197F25 #19407F
square
#7F1973 #7F5819 #197F25 #19407F
split-complementary
#7F1973 #407F19 #197F58
monochromatic
#1A0517 #4C0F45 #7F1973 #B223A1 #D83AC6

Accessibility & contrast

On white

9.17
#7F1973 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F1973
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1973#FFFFFF#000000##FFFFFF
##7F19731.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153F75
Deuteranopia (green-blind)
#3D4D71
Tritanopia (blue-blind)
#852445
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7f1973;
/* rgb */ color: rgb(127, 25, 115);
/* oklch */ color: oklch(42.3% 0.167 333.6);
Tailwind
colors: {
  custom: {
    50: '#a8639b',
    500: '#7f1973',
    950: '#000000',
  },
}
SCSS
$custom: #7f1973;
$custom-light: #a8639b;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1973",
  "rgb": {
    "r": 127,
    "g": 25,
    "b": 115
  },
  "hsl": {
    "h": 307.059,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.42319,
    "c": 0.16726,
    "h": 333.6
  },
  "luminance": 0.06445
}

Semantic roles & 50–950 ramp

primary
#7F1973
secondary
#41B34E
accent
#EA523E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1973

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

Preview Lab → · Contrast checker → · Palette generator →

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