#7F2974#7F2974

#7F2974 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 43.9% C 0.149 H 333.3°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#7F2974
RGBrgb(127, 41, 116)
HSLhsl(308, 51%, 33%)
HSVhsv(308, 68%, 50%)
CMYKcmyk(0%, 67.7%, 8.7%, 50.2%)
CIE-LABlab(32.61, 46.07, -24.45)
CIE-LCHlch(32.61, 52.15, 332.04°)
OKLaboklab(43.85% 0.1329 -0.0669)
OKLCHoklch(43.85% 0.149 333.3)
XYZxyz(12.6978, 7.3599, 17.2714)
Luminance0.0736 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2974 #297F34
analogous
#5F297F #7F2974 #7F2949
triadic
#7F2974 #747F29 #29747F
tetradic
#7F2974 #7F5F29 #297F34 #29497F
square
#7F2974 #7F5F29 #297F34 #29497F
split-complementary
#7F2974 #497F29 #297F5F
monochromatic
#220B1F #511A4A #7F2974 #AD389E #C959BB

Accessibility & contrast

On white

8.50
#7F2974 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2974
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2974#FFFFFF#000000##FFFFFF
##7F29741.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f2974;
/* rgb */ color: rgb(127, 41, 116);
/* oklch */ color: oklch(43.9% 0.149 333.3);
Tailwind
colors: {
  custom: {
    50: '#a76a9c',
    500: '#7f2974',
    950: '#000000',
  },
}
SCSS
$custom: #7f2974;
$custom-light: #a76a9c;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2974",
  "rgb": {
    "r": 127,
    "g": 41,
    "b": 116
  },
  "hsl": {
    "h": 307.674,
    "s": 51.19,
    "l": 32.941
  },
  "oklch": {
    "l": 0.43852,
    "c": 0.14877,
    "h": 333.3
  },
  "luminance": 0.07359
}

Semantic roles & 50–950 ramp

primary
#7F2974
secondary
#55AF61
accent
#DB5F4D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #7F2974

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

Preview Lab → · Contrast checker → · Palette generator →

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