#7F1B72#7F1B72

#7F1B72 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.4% C 0.164 H 334.1°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#7F1B72
RGBrgb(127, 27, 114)
HSLhsl(308, 65%, 30%)
HSVhsv(308, 79%, 50%)
CMYKcmyk(0%, 78.7%, 10.2%, 50.2%)
CIE-LABlab(30.67, 50.93, -26.23)
CIE-LCHlch(30.67, 57.29, 332.75°)
OKLaboklab(42.41% 0.148 -0.0719)
OKLCHoklch(42.41% 0.164 334.1)
XYZxyz(12.1817, 6.5119, 16.5317)
Luminance0.0651 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1B72 #1B7F28
analogous
#5A1B7F #7F1B72 #7F1B40
triadic
#7F1B72 #727F1B #1B727F
tetradic
#7F1B72 #7F5A1B #1B7F28 #1B407F
square
#7F1B72 #7F5A1B #1B7F28 #1B407F
split-complementary
#7F1B72 #407F1B #1B7F5A
monochromatic
#1A0617 #4D1045 #7F1B72 #B1269F #D63EC2

Accessibility & contrast

On white

9.12
#7F1B72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#7F1B72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1B72
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1B72#FFFFFF#000000##FFFFFF
##7F1B721.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183F74
Deuteranopia (green-blind)
#3F4D70
Tritanopia (blue-blind)
#852545
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7f1b72;
/* rgb */ color: rgb(127, 27, 114);
/* oklch */ color: oklch(42.4% 0.164 334.1);
Tailwind
colors: {
  custom: {
    50: '#a8649b',
    500: '#7f1b72',
    950: '#000000',
  },
}
SCSS
$custom: #7f1b72;
$custom-light: #a8649b;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1b72",
  "rgb": {
    "r": 127,
    "g": 27,
    "b": 114
  },
  "hsl": {
    "h": 307.8,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.42414,
    "c": 0.16449,
    "h": 334.1
  },
  "luminance": 0.06511
}

Semantic roles & 50–950 ramp

primary
#7F1B72
secondary
#43B352
accent
#E85640
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1B72

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

Preview Lab → · Contrast checker → · Palette generator →

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