#7F2179#7F2179

#7F2179 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.3% C 0.163 H 330.7°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#7F2179
RGBrgb(127, 33, 121)
HSLhsl(304, 59%, 31%)
HSVhsv(304, 74%, 50%)
CMYKcmyk(0%, 74%, 4.7%, 50.2%)
CIE-LABlab(31.76, 50.06, -28.94)
CIE-LCHlch(31.76, 57.82, 329.96°)
OKLaboklab(43.33% 0.1424 -0.0797)
OKLCHoklch(43.33% 0.163 330.7)
XYZxyz(12.7474, 6.9812, 18.7616)
Luminance0.0698 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2179 #217F27
analogous
#56217F #7F2179 #7F214A
triadic
#7F2179 #797F21 #21797F
tetradic
#7F2179 #7F5621 #217F27 #214A7F
square
#7F2179 #7F5621 #217F27 #214A7F
split-complementary
#7F2179 #4A7F21 #217F56
monochromatic
#1E081C #4E144B #7F2179 #B02EA7 #D04AC8

Accessibility & contrast

On white

8.76
#7F2179 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#7F2179 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2179
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2179#FFFFFF#000000##FFFFFF
##7F21791.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18427B
Deuteranopia (green-blind)
#3E4F77
Tritanopia (blue-blind)
#842D4B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7f2179;
/* rgb */ color: rgb(127, 33, 121);
/* oklch */ color: oklch(43.3% 0.163 330.7);
Tailwind
colors: {
  custom: {
    50: '#a766a0',
    500: '#7f2179',
    950: '#000000',
  },
}
SCSS
$custom: #7f2179;
$custom-light: #a766a0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2179",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 121
  },
  "hsl": {
    "h": 303.83,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.43326,
    "c": 0.16321,
    "h": 330.7
  },
  "luminance": 0.0698
}

Semantic roles & 50–950 ramp

primary
#7F2179
secondary
#4AB251
accent
#E25046
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F2179

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

Preview Lab → · Contrast checker → · Palette generator →

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