#7F2571#7F2571

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

Color values

HEX#7F2571
RGBrgb(127, 37, 113)
HSLhsl(309, 55%, 32%)
HSVhsv(309, 71%, 50%)
CMYKcmyk(0%, 70.9%, 11%, 50.2%)
CIE-LABlab(31.87, 47.21, -23.71)
CIE-LCHlch(31.87, 52.83, 333.33°)
OKLaboklab(43.27% 0.1374 -0.0647)
OKLCHoklch(43.27% 0.152 334.8)
XYZxyz(12.3947, 7.0285, 16.3234)
Luminance0.0703 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2571 #257F33
analogous
#60257F #7F2571 #7F2544
triadic
#7F2571 #717F25 #25717F
tetradic
#7F2571 #7F6025 #257F33 #25447F
square
#7F2571 #7F6025 #257F33 #25447F
split-complementary
#7F2571 #447F25 #257F60
monochromatic
#20091D #501747 #7F2571 #AE339B #CD52B9

Accessibility & contrast

On white

8.73
#7F2571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#7F2571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2571
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2571#FFFFFF#000000##FFFFFF
##7F25711.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244273
Deuteranopia (green-blind)
#43506F
Tritanopia (blue-blind)
#852C48
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7f2571;
/* rgb */ color: rgb(127, 37, 113);
/* oklch */ color: oklch(43.3% 0.152 334.8);
Tailwind
colors: {
  custom: {
    50: '#a7689a',
    500: '#7f2571',
    950: '#000000',
  },
}
SCSS
$custom: #7f2571;
$custom-light: #a7689a;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2571",
  "rgb": {
    "r": 127,
    "g": 37,
    "b": 113
  },
  "hsl": {
    "h": 309.333,
    "s": 54.878,
    "l": 32.157
  },
  "oklch": {
    "l": 0.43265,
    "c": 0.15184,
    "h": 334.8
  },
  "luminance": 0.07027
}

Semantic roles & 50–950 ramp

primary
#7F2571
secondary
#4FB15E
accent
#DE614A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #7F2571

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

Preview Lab → · Contrast checker → · Palette generator →

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