#7F2072#7F2072

#7F2072 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 42.8% C 0.159 H 334.2°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#7F2072
RGBrgb(127, 32, 114)
HSLhsl(308, 60%, 31%)
HSVhsv(308, 75%, 50%)
CMYKcmyk(0%, 74.8%, 10.2%, 50.2%)
CIE-LABlab(31.26, 49.26, -25.31)
CIE-LCHlch(31.26, 55.38, 332.81°)
OKLaboklab(42.84% 0.143 -0.0693)
OKLCHoklch(42.84% 0.159 334.2)
XYZxyz(12.3063, 6.7610, 16.5732)
Luminance0.0676 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2072 #207F2D
analogous
#5C207F #7F2072 #7F2042
triadic
#7F2072 #727F20 #20727F
tetradic
#7F2072 #7F5C20 #207F2D #20427F
square
#7F2072 #7F5C20 #207F2D #20427F
split-complementary
#7F2072 #427F20 #207F5C
monochromatic
#1D071A #4E1446 #7F2072 #B02C9E #D148BE

Accessibility & contrast

On white

8.93
#7F2072 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#7F2072 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2072
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2072#FFFFFF#000000##FFFFFF
##7F20721.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4174
Deuteranopia (green-blind)
#404E70
Tritanopia (blue-blind)
#852847
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7f2072;
/* rgb */ color: rgb(127, 32, 114);
/* oklch */ color: oklch(42.8% 0.159 334.2);
Tailwind
colors: {
  custom: {
    50: '#a7669b',
    500: '#7f2072',
    950: '#000000',
  },
}
SCSS
$custom: #7f2072;
$custom-light: #a7669b;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2072",
  "rgb": {
    "r": 127,
    "g": 32,
    "b": 114
  },
  "hsl": {
    "h": 308.211,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.42837,
    "c": 0.1589,
    "h": 334.2
  },
  "luminance": 0.0676
}

Semantic roles & 50–950 ramp

primary
#7F2072
secondary
#49B257
accent
#E35B45
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F2072

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

Preview Lab → · Contrast checker → · Palette generator →

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