#7F2172#7F2172

#7F2172 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 42.9% C 0.158 H 334.2°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#7F2172
RGBrgb(127, 33, 114)
HSLhsl(308, 59%, 31%)
HSVhsv(308, 74%, 50%)
CMYKcmyk(0%, 74%, 10.2%, 50.2%)
CIE-LABlab(31.38, 48.90, -25.11)
CIE-LCHlch(31.38, 54.97, 332.82°)
OKLaboklab(42.93% 0.142 -0.0687)
OKLCHoklch(42.93% 0.158 334.2)
XYZxyz(12.3336, 6.8157, 16.5823)
Luminance0.0682 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2172 #217F2E
analogous
#5D217F #7F2172 #7F2143
triadic
#7F2172 #727F21 #21727F
tetradic
#7F2172 #7F5D21 #217F2E #21437F
square
#7F2172 #7F5D21 #217F2E #21437F
split-complementary
#7F2172 #437F21 #217F5D
monochromatic
#1E081B #4E1446 #7F2172 #B02E9E #D04ABE

Accessibility & contrast

On white

8.89
#7F2172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#7F2172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2172
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2172#FFFFFF#000000##FFFFFF
##7F21721.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4174
Deuteranopia (green-blind)
#414F70
Tritanopia (blue-blind)
#852947
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7f2172;
/* rgb */ color: rgb(127, 33, 114);
/* oklch */ color: oklch(42.9% 0.158 334.2);
Tailwind
colors: {
  custom: {
    50: '#a7669b',
    500: '#7f2172',
    950: '#000000',
  },
}
SCSS
$custom: #7f2172;
$custom-light: #a7669b;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2172",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 308.298,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42929,
    "c": 0.1577,
    "h": 334.2
  },
  "luminance": 0.06815
}

Semantic roles & 50–950 ramp

primary
#7F2172
secondary
#4AB258
accent
#E25B46
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F2172

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

Preview Lab → · Contrast checker → · Palette generator →

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