#7F2A76#7F2A76

#7F2A76 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.1% C 0.149 H 332.3°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#7F2A76
RGBrgb(127, 42, 118)
HSLhsl(306, 50%, 33%)
HSVhsv(306, 67%, 50%)
CMYKcmyk(0%, 66.9%, 7.1%, 50.2%)
CIE-LABlab(32.87, 45.98, -25.31)
CIE-LCHlch(32.87, 52.49, 331.17°)
OKLaboklab(44.07% 0.1319 -0.0694)
OKLCHoklch(44.07% 0.149 332.3)
XYZxyz(12.8504, 7.4769, 17.9024)
Luminance0.0748 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2A76 #2A7F33
analogous
#5D2A7F #7F2A76 #7F2A4B
triadic
#7F2A76 #767F2A #2A767F
tetradic
#7F2A76 #7F5D2A #2A7F33 #2A4B7F
square
#7F2A76 #7F5D2A #2A7F33 #2A4B7F
split-complementary
#7F2A76 #4B7F2A #2A7F5D
monochromatic
#230C21 #511B4B #7F2A76 #AD39A1 #C95BBD

Accessibility & contrast

On white

8.42
#7F2A76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#7F2A76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2A76
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2A76#FFFFFF#000000##FFFFFF
##7F2A761.008.422.508.42
#FFFFFF8.421.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264678
Deuteranopia (green-blind)
#435274
Tritanopia (blue-blind)
#84324C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7f2a76;
/* rgb */ color: rgb(127, 42, 118);
/* oklch */ color: oklch(44.1% 0.149 332.3);
Tailwind
colors: {
  custom: {
    50: '#a76a9e',
    500: '#7f2a76',
    950: '#000000',
  },
}
SCSS
$custom: #7f2a76;
$custom-light: #a76a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2a76",
  "rgb": {
    "r": 127,
    "g": 42,
    "b": 118
  },
  "hsl": {
    "h": 306.353,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44072,
    "c": 0.149,
    "h": 332.3
  },
  "luminance": 0.07476
}

Semantic roles & 50–950 ramp

primary
#7F2A76
secondary
#57AE60
accent
#DA5D4E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #7F2A76

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

Preview Lab → · Contrast checker → · Palette generator →

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