#7F2371#7F2371

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

Color values

HEX#7F2371
RGBrgb(127, 35, 113)
HSLhsl(309, 57%, 32%)
HSVhsv(309, 72%, 50%)
CMYKcmyk(0%, 72.4%, 11%, 50.2%)
CIE-LABlab(31.60, 47.99, -24.14)
CIE-LCHlch(31.60, 53.72, 333.29°)
OKLaboklab(43.06% 0.1397 -0.0659)
OKLCHoklch(43.06% 0.154 334.7)
XYZxyz(12.3342, 6.9074, 16.3032)
Luminance0.0691 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2371 #237F31
analogous
#5F237F #7F2371 #7F2343
triadic
#7F2371 #717F23 #23717F
tetradic
#7F2371 #7F5F23 #237F31 #23437F
square
#7F2371 #7F5F23 #237F31 #23437F
split-complementary
#7F2371 #437F23 #237F5F
monochromatic
#1F091C #4F1646 #7F2371 #AF309C #CE4EBB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F2371#FFFFFF#000000##FFFFFF
##7F23711.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)
#224273
Deuteranopia (green-blind)
#424F6F
Tritanopia (blue-blind)
#852A47
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7f2371;
/* rgb */ color: rgb(127, 35, 113);
/* oklch */ color: oklch(43.1% 0.154 334.7);
Tailwind
colors: {
  custom: {
    50: '#a7679a',
    500: '#7f2371',
    950: '#000000',
  },
}
SCSS
$custom: #7f2371;
$custom-light: #a7679a;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2371",
  "rgb": {
    "r": 127,
    "g": 35,
    "b": 113
  },
  "hsl": {
    "h": 309.13,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.43064,
    "c": 0.15445,
    "h": 334.7
  },
  "luminance": 0.06906
}

Semantic roles & 50–950 ramp

primary
#7F2371
secondary
#4CB15C
accent
#E05F48
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F2371

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

Preview Lab → · Contrast checker → · Palette generator →

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