#7F2977#7F2977

#7F2977 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.0% C 0.151 H 331.7°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#7F2977
RGBrgb(127, 41, 119)
HSLhsl(306, 51%, 33%)
HSVhsv(306, 68%, 50%)
CMYKcmyk(0%, 67.7%, 6.3%, 50.2%)
CIE-LABlab(32.77, 46.58, -26.10)
CIE-LCHlch(32.77, 53.39, 330.74°)
OKLaboklab(44.02% 0.1332 -0.0716)
OKLCHoklch(44.02% 0.151 331.7)
XYZxyz(12.8751, 7.4308, 18.2054)
Luminance0.0743 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2977 #297F31
analogous
#5C297F #7F2977 #7F294C
triadic
#7F2977 #777F29 #29777F
tetradic
#7F2977 #7F5C29 #297F31 #294C7F
square
#7F2977 #7F5C29 #297F31 #294C7F
split-complementary
#7F2977 #4C7F29 #297F5C
monochromatic
#220B20 #511A4C #7F2977 #AD38A2 #C959BF

Accessibility & contrast

On white

8.45
#7F2977 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#7F2977 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2977
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2977#FFFFFF#000000##FFFFFF
##7F29771.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244579
Deuteranopia (green-blind)
#425175
Tritanopia (blue-blind)
#84314C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7f2977;
/* rgb */ color: rgb(127, 41, 119);
/* oklch */ color: oklch(44.0% 0.151 331.7);
Tailwind
colors: {
  custom: {
    50: '#a76a9e',
    500: '#7f2977',
    950: '#000000',
  },
}
SCSS
$custom: #7f2977;
$custom-light: #a76a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2977",
  "rgb": {
    "r": 127,
    "g": 41,
    "b": 119
  },
  "hsl": {
    "h": 305.581,
    "s": 51.19,
    "l": 32.941
  },
  "oklch": {
    "l": 0.44016,
    "c": 0.15123,
    "h": 331.7
  },
  "luminance": 0.0743
}

Semantic roles & 50–950 ramp

primary
#7F2977
secondary
#55AF5D
accent
#DB5A4D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #7F2977

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

Preview Lab → · Contrast checker → · Palette generator →

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