#7F1F88#7F1F88

#7F1F88 is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.1% C 0.178 H 324.2°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#7F1F88
RGBrgb(127, 31, 136)
HSLhsl(295, 63%, 33%)
HSVhsv(295, 77%, 53%)
CMYKcmyk(6.6%, 77.2%, 0%, 46.7%)
CIE-LABlab(32.41, 53.38, -37.29)
CIE-LCHlch(32.41, 65.12, 325.07°)
OKLaboklab(44.08% 0.1442 -0.104)
OKLCHoklch(44.08% 0.178 324.2)
XYZxyz(13.6859, 7.2704, 23.9703)
Luminance0.0727 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1F88 #28881F
analogous
#4A1F88 #7F1F88 #881F5C
triadic
#7F1F88 #887F1F #1F887F
tetradic
#7F1F88 #884A1F #28881F #1F5C88
square
#7F1F88 #884A1F #28881F #1F5C88
split-complementary
#7F1F88 #5C881F #1F884A
monochromatic
#220824 #501456 #7F1F88 #AE2ABA #CA4BD6

Accessibility & contrast

On white

8.56
#7F1F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#7F1F88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1F88
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1F88#FFFFFF#000000##FFFFFF
##7F1F881.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458B
Deuteranopia (green-blind)
#335086
Tritanopia (blue-blind)
#823252
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7f1f88;
/* rgb */ color: rgb(127, 31, 136);
/* oklch */ color: oklch(44.1% 0.178 324.2);
Tailwind
colors: {
  custom: {
    50: '#a866ab',
    500: '#7f1f88',
    950: '#000000',
  },
}
SCSS
$custom: #7f1f88;
$custom-light: #a866ab;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1f88",
  "rgb": {
    "r": 127,
    "g": 31,
    "b": 136
  },
  "hsl": {
    "h": 294.857,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.44079,
    "c": 0.17777,
    "h": 324.2
  },
  "luminance": 0.0727
}

Semantic roles & 50–950 ramp

primary
#7F1F88
secondary
#54B94A
accent
#E64250
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7F1F88

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

Preview Lab → · Contrast checker → · Palette generator →

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