#7F1E72#7F1E72

#7F1E72 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.7% C 0.161 H 334.1°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#7F1E72
RGBrgb(127, 30, 114)
HSLhsl(308, 62%, 31%)
HSVhsv(308, 76%, 50%)
CMYKcmyk(0%, 76.4%, 10.2%, 50.2%)
CIE-LABlab(31.01, 49.95, -25.69)
CIE-LCHlch(31.01, 56.17, 332.78°)
OKLaboklab(42.66% 0.1451 -0.0704)
OKLCHoklch(42.66% 0.161 334.1)
XYZxyz(12.2540, 6.6565, 16.5558)
Luminance0.0665 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1E72 #1E7F2B
analogous
#5B1E7F #7F1E72 #7F1E41
triadic
#7F1E72 #727F1E #1E727F
tetradic
#7F1E72 #7F5B1E #1E7F2B #1E417F
square
#7F1E72 #7F5B1E #1E7F2B #1E417F
split-complementary
#7F1E72 #417F1E #1E7F5B
monochromatic
#1C0719 #4D1246 #7F1E72 #B12A9E #D344C0

Accessibility & contrast

On white

9.01
#7F1E72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#7F1E72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1E72
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1E72#FFFFFF#000000##FFFFFF
##7F1E721.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4074
Deuteranopia (green-blind)
#404E70
Tritanopia (blue-blind)
#852746
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7f1e72;
/* rgb */ color: rgb(127, 30, 114);
/* oklch */ color: oklch(42.7% 0.161 334.1);
Tailwind
colors: {
  custom: {
    50: '#a7659b',
    500: '#7f1e72',
    950: '#000000',
  },
}
SCSS
$custom: #7f1e72;
$custom-light: #a7659b;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1e72",
  "rgb": {
    "r": 127,
    "g": 30,
    "b": 114
  },
  "hsl": {
    "h": 308.041,
    "s": 61.783,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42661,
    "c": 0.16122,
    "h": 334.1
  },
  "luminance": 0.06655
}

Semantic roles & 50–950 ramp

primary
#7F1E72
secondary
#47B255
accent
#E55943
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1E72

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

Preview Lab → · Contrast checker → · Palette generator →

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