#7F2973#7F2973

#7F2973 is a dark, vivid purple. Relative luminance 0.073; OKLCH L 43.8% C 0.148 H 333.8°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#7F2973
RGBrgb(127, 41, 115)
HSLhsl(308, 51%, 33%)
HSVhsv(308, 68%, 50%)
CMYKcmyk(0%, 67.7%, 9.4%, 50.2%)
CIE-LABlab(32.56, 45.90, -23.90)
CIE-LCHlch(32.56, 51.75, 332.50°)
OKLaboklab(43.8% 0.1328 -0.0653)
OKLCHoklch(43.8% 0.148 333.8)
XYZxyz(12.6399, 7.3367, 16.9667)
Luminance0.0734 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2973 #297F35
analogous
#60297F #7F2973 #7F2948
triadic
#7F2973 #737F29 #29737F
tetradic
#7F2973 #7F6029 #297F35 #29487F
square
#7F2973 #7F6029 #297F35 #29487F
split-complementary
#7F2973 #487F29 #297F60
monochromatic
#220B1F #511A49 #7F2973 #AD389D #C959BA

Accessibility & contrast

On white

8.51
#7F2973 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#7F2973 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2973
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2973#FFFFFF#000000##FFFFFF
##7F29731.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274575
Deuteranopia (green-blind)
#445171
Tritanopia (blue-blind)
#85304A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7f2973;
/* rgb */ color: rgb(127, 41, 115);
/* oklch */ color: oklch(43.8% 0.148 333.8);
Tailwind
colors: {
  custom: {
    50: '#a76a9b',
    500: '#7f2973',
    950: '#000000',
  },
}
SCSS
$custom: #7f2973;
$custom-light: #a76a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2973",
  "rgb": {
    "r": 127,
    "g": 41,
    "b": 115
  },
  "hsl": {
    "h": 308.372,
    "s": 51.19,
    "l": 32.941
  },
  "oklch": {
    "l": 0.43798,
    "c": 0.14796,
    "h": 333.8
  },
  "luminance": 0.07336
}

Semantic roles & 50–950 ramp

primary
#7F2973
secondary
#55AF62
accent
#DB614D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #7F2973

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

Preview Lab → · Contrast checker → · Palette generator →

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