#7F1972#7F1972

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

Color values

HEX#7F1972
RGBrgb(127, 25, 114)
HSLhsl(308, 67%, 30%)
HSVhsv(308, 80%, 50%)
CMYKcmyk(0%, 80.3%, 10.2%, 50.2%)
CIE-LABlab(30.46, 51.54, -26.57)
CIE-LCHlch(30.46, 57.99, 332.73°)
OKLaboklab(42.26% 0.1497 -0.0728)
OKLCHoklch(42.26% 0.167 334.1)
XYZxyz(12.1374, 6.4233, 16.5169)
Luminance0.0642 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1972 #197F26
analogous
#59197F #7F1972 #7F193F
triadic
#7F1972 #727F19 #19727F
tetradic
#7F1972 #7F5919 #197F26 #193F7F
square
#7F1972 #7F5919 #197F26 #193F7F
split-complementary
#7F1972 #3F7F19 #197F59
monochromatic
#1A0517 #4C0F44 #7F1972 #B223A0 #D83AC4

Accessibility & contrast

On white

9.19
#7F1972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#7F1972 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1972
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1972#FFFFFF#000000##FFFFFF
##7F19721.009.192.289.19
#FFFFFF9.191.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163E74
Deuteranopia (green-blind)
#3E4D70
Tritanopia (blue-blind)
#852445
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7f1972;
/* rgb */ color: rgb(127, 25, 114);
/* oklch */ color: oklch(42.3% 0.167 334.1);
Tailwind
colors: {
  custom: {
    50: '#a8639b',
    500: '#7f1972',
    950: '#000000',
  },
}
SCSS
$custom: #7f1972;
$custom-light: #a8639b;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1972",
  "rgb": {
    "r": 127,
    "g": 25,
    "b": 114
  },
  "hsl": {
    "h": 307.647,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.42262,
    "c": 0.16652,
    "h": 334.1
  },
  "luminance": 0.06422
}

Semantic roles & 50–950 ramp

primary
#7F1972
secondary
#41B34F
accent
#EA543E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1972

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

Preview Lab → · Contrast checker → · Palette generator →

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