#7F1570#7F1570

#7F1570 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.9% C 0.169 H 335.0°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#7F1570
RGBrgb(127, 21, 112)
HSLhsl(308, 72%, 29%)
HSVhsv(308, 83%, 50%)
CMYKcmyk(0%, 83.5%, 11.8%, 50.2%)
CIE-LABlab(29.96, 52.35, -26.07)
CIE-LCHlch(29.96, 58.49, 333.52°)
OKLaboklab(41.87% 0.153 -0.0714)
OKLCHoklch(41.87% 0.169 335)
XYZxyz(11.9454, 6.2193, 15.8974)
Luminance0.0622 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1570 #157F24
analogous
#59157F #7F1570 #7F153B
triadic
#7F1570 #707F15 #15707F
tetradic
#7F1570 #7F5915 #157F24 #153B7F
square
#7F1570 #7F5915 #157F24 #153B7F
split-complementary
#7F1570 #3B7F15 #157F59
monochromatic
#1A0417 #4A0C42 #7F1570 #B41E9E #DD31C5

Accessibility & contrast

On white

9.36
#7F1570 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#7F1570 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1570
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1570#FFFFFF#000000##FFFFFF
##7F15701.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143D72
Deuteranopia (green-blind)
#3E4C6E
Tritanopia (blue-blind)
#862043
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f1570;
/* rgb */ color: rgb(127, 21, 112);
/* oklch */ color: oklch(41.9% 0.169 335.0);
Tailwind
colors: {
  custom: {
    50: '#a86199',
    500: '#7f1570',
    950: '#000000',
  },
}
SCSS
$custom: #7f1570;
$custom-light: #a86199;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1570",
  "rgb": {
    "r": 127,
    "g": 21,
    "b": 112
  },
  "hsl": {
    "h": 308.491,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.41871,
    "c": 0.16879,
    "h": 335
  },
  "luminance": 0.06218
}

Semantic roles & 50–950 ramp

primary
#7F1570
secondary
#3CB44D
accent
#EE5339
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1570

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

Preview Lab → · Contrast checker → · Palette generator →

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