#7F1D96#7F1D96

#7F1D96 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.9% C 0.192 H 318.9°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#7F1D96
RGBrgb(127, 29, 150)
HSLhsl(289, 68%, 35%)
HSVhsv(289, 81%, 59%)
CMYKcmyk(15.3%, 80.7%, 0%, 41.2%)
CIE-LABlab(33.12, 56.63, -44.78)
CIE-LCHlch(33.12, 72.20, 321.67°)
OKLaboklab(44.88% 0.1444 -0.1259)
OKLCHoklch(44.88% 0.192 318.9)
XYZxyz(14.6960, 7.5935, 29.5398)
Luminance0.0759 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1D96 #34961D
analogous
#421D96 #7F1D96 #961D71
triadic
#7F1D96 #967F1D #1D967F
tetradic
#7F1D96 #96421D #34961D #1D7196
square
#7F1D96 #96421D #34961D #1D7196
split-complementary
#7F1D96 #71961D #1D9642
monochromatic
#28092F #541363 #7F1D96 #AA27C9 #C250DD

Accessibility & contrast

On white

8.34
#7F1D96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#7F1D96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1D96
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1D96#FFFFFF#000000##FFFFFF
##7F1D961.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004899
Deuteranopia (green-blind)
#265193
Tritanopia (blue-blind)
#7F385A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7f1d96;
/* rgb */ color: rgb(127, 29, 150);
/* oklch */ color: oklch(44.9% 0.192 318.9);
Tailwind
colors: {
  custom: {
    50: '#a866b5',
    500: '#7f1d96',
    950: '#000000',
  },
}
SCSS
$custom: #7f1d96;
$custom-light: #a866b5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1d96",
  "rgb": {
    "r": 127,
    "g": 29,
    "b": 150
  },
  "hsl": {
    "h": 288.595,
    "s": 67.598,
    "l": 35.098
  },
  "oklch": {
    "l": 0.44876,
    "c": 0.19157,
    "h": 318.9
  },
  "luminance": 0.07593
}

Semantic roles & 50–950 ramp

primary
#7F1D96
secondary
#64C04F
accent
#EA3D5E
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7F1D96

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

Preview Lab → · Contrast checker → · Palette generator →

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