#7F2071#7F2071

#7F2071 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.8% C 0.158 H 334.7°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#7F2071
RGBrgb(127, 32, 113)
HSLhsl(309, 60%, 31%)
HSVhsv(309, 75%, 50%)
CMYKcmyk(0%, 74.8%, 11%, 50.2%)
CIE-LABlab(31.20, 49.10, -24.76)
CIE-LCHlch(31.20, 54.98, 333.24°)
OKLaboklab(42.78% 0.1429 -0.0677)
OKLCHoklch(42.78% 0.158 334.7)
XYZxyz(12.2497, 6.7384, 16.2751)
Luminance0.0674 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2071 #207F2E
analogous
#5D207F #7F2071 #7F2041
triadic
#7F2071 #717F20 #20717F
tetradic
#7F2071 #7F5D20 #207F2E #20417F
square
#7F2071 #7F5D20 #207F2E #20417F
split-complementary
#7F2071 #417F20 #207F5D
monochromatic
#1D071A #4E1446 #7F2071 #B02C9C #D148BD

Accessibility & contrast

On white

8.95
#7F2071 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2071
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2071#FFFFFF#000000##FFFFFF
##7F20711.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4073
Deuteranopia (green-blind)
#414E6F
Tritanopia (blue-blind)
#852846
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7f2071;
/* rgb */ color: rgb(127, 32, 113);
/* oklch */ color: oklch(42.8% 0.158 334.7);
Tailwind
colors: {
  custom: {
    50: '#a7669a',
    500: '#7f2071',
    950: '#000000',
  },
}
SCSS
$custom: #7f2071;
$custom-light: #a7669a;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2071",
  "rgb": {
    "r": 127,
    "g": 32,
    "b": 113
  },
  "hsl": {
    "h": 308.842,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.42782,
    "c": 0.15814,
    "h": 334.7
  },
  "luminance": 0.06737
}

Semantic roles & 50–950 ramp

primary
#7F2071
secondary
#49B258
accent
#E35C45
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F2071

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

Preview Lab → · Contrast checker → · Palette generator →

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