#7F1870#7F1870

#7F1870 is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.1% C 0.166 H 335.0°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#7F1870
RGBrgb(127, 24, 112)
HSLhsl(309, 68%, 30%)
HSVhsv(309, 81%, 50%)
CMYKcmyk(0%, 81.1%, 11.8%, 50.2%)
CIE-LABlab(30.25, 51.53, -25.62)
CIE-LCHlch(30.25, 57.55, 333.56°)
OKLaboklab(42.08% 0.1505 -0.0701)
OKLCHoklch(42.08% 0.166 335)
XYZxyz(12.0038, 6.3362, 15.9169)
Luminance0.0634 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1870 #187F27
analogous
#5B187F #7F1870 #7F183D
triadic
#7F1870 #707F18 #18707F
tetradic
#7F1870 #7F5B18 #187F27 #183D7F
square
#7F1870 #7F5B18 #187F27 #183D7F
split-complementary
#7F1870 #3D7F18 #187F5B
monochromatic
#1A0517 #4C0E43 #7F1870 #B2229D #D938C2

Accessibility & contrast

On white

9.26
#7F1870 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#7F1870 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1870
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1870#FFFFFF#000000##FFFFFF
##7F18701.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173E72
Deuteranopia (green-blind)
#3E4D6E
Tritanopia (blue-blind)
#862243
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f1870;
/* rgb */ color: rgb(127, 24, 112);
/* oklch */ color: oklch(42.1% 0.166 335.0);
Tailwind
colors: {
  custom: {
    50: '#a86299',
    500: '#7f1870',
    950: '#000000',
  },
}
SCSS
$custom: #7f1870;
$custom-light: #a86299;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1870",
  "rgb": {
    "r": 127,
    "g": 24,
    "b": 112
  },
  "hsl": {
    "h": 308.738,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.42075,
    "c": 0.16603,
    "h": 335
  },
  "luminance": 0.06335
}

Semantic roles & 50–950 ramp

primary
#7F1870
secondary
#3FB350
accent
#EB563D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1870

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

Preview Lab → · Contrast checker → · Palette generator →

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