#7F2176#7F2176

#7F2176 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.2% C 0.161 H 332.2°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#7F2176
RGBrgb(127, 33, 118)
HSLhsl(306, 59%, 31%)
HSVhsv(306, 74%, 50%)
CMYKcmyk(0%, 74%, 7.1%, 50.2%)
CIE-LABlab(31.60, 49.55, -27.31)
CIE-LCHlch(31.60, 56.58, 331.14°)
OKLaboklab(43.15% 0.1422 -0.075)
OKLCHoklch(43.15% 0.161 332.2)
XYZxyz(12.5663, 6.9088, 17.8077)
Luminance0.0691 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2176 #217F2A
analogous
#59217F #7F2176 #7F2147
triadic
#7F2176 #767F21 #21767F
tetradic
#7F2176 #7F5921 #217F2A #21477F
square
#7F2176 #7F5921 #217F2A #21477F
split-complementary
#7F2176 #477F21 #217F59
monochromatic
#1E081C #4E1449 #7F2176 #B02EA3 #D04AC3

Accessibility & contrast

On white

8.82
#7F2176 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#7F2176 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2176
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2176#FFFFFF#000000##FFFFFF
##7F21761.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4278
Deuteranopia (green-blind)
#3F4F74
Tritanopia (blue-blind)
#852B49
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7f2176;
/* rgb */ color: rgb(127, 33, 118);
/* oklch */ color: oklch(43.2% 0.161 332.2);
Tailwind
colors: {
  custom: {
    50: '#a7669e',
    500: '#7f2176',
    950: '#000000',
  },
}
SCSS
$custom: #7f2176;
$custom-light: #a7669e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2176",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 118
  },
  "hsl": {
    "h": 305.745,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.43153,
    "c": 0.16082,
    "h": 332.2
  },
  "luminance": 0.06908
}

Semantic roles & 50–950 ramp

primary
#7F2176
secondary
#4AB254
accent
#E25546
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F2176

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

Preview Lab → · Contrast checker → · Palette generator →

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