#7F2A77#7F2A77

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

Color values

HEX#7F2A77
RGBrgb(127, 42, 119)
HSLhsl(306, 50%, 33%)
HSVhsv(306, 67%, 50%)
CMYKcmyk(0%, 66.9%, 6.3%, 50.2%)
CIE-LABlab(32.92, 46.15, -25.86)
CIE-LCHlch(32.92, 52.90, 330.74°)
OKLaboklab(44.13% 0.132 -0.0709)
OKLCHoklch(44.13% 0.15 331.7)
XYZxyz(12.9101, 7.5008, 18.2170)
Luminance0.0750 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2A77 #2A7F32
analogous
#5C2A7F #7F2A77 #7F2A4C
triadic
#7F2A77 #777F2A #2A777F
tetradic
#7F2A77 #7F5C2A #2A7F32 #2A4C7F
square
#7F2A77 #7F5C2A #2A7F32 #2A4C7F
split-complementary
#7F2A77 #4C7F2A #2A7F5C
monochromatic
#230C21 #511B4C #7F2A77 #AD39A2 #C95BBE

Accessibility & contrast

On white

8.40
#7F2A77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2A77
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2A77#FFFFFF#000000##FFFFFF
##7F2A771.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f2a77;
/* rgb */ color: rgb(127, 42, 119);
/* oklch */ color: oklch(44.1% 0.150 331.7);
Tailwind
colors: {
  custom: {
    50: '#a76a9e',
    500: '#7f2a77',
    950: '#000000',
  },
}
SCSS
$custom: #7f2a77;
$custom-light: #a76a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2a77",
  "rgb": {
    "r": 127,
    "g": 42,
    "b": 119
  },
  "hsl": {
    "h": 305.647,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44126,
    "c": 0.14983,
    "h": 331.7
  },
  "luminance": 0.075
}

Semantic roles & 50–950 ramp

primary
#7F2A77
secondary
#57AE5F
accent
#DA5B4E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #7F2A77

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

Preview Lab → · Contrast checker → · Palette generator →

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