#7F1E97#7F1E97

#7F1E97 is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.0% C 0.191 H 318.5°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#7F1E97
RGBrgb(127, 30, 151)
HSLhsl(288, 67%, 35%)
HSVhsv(288, 80%, 59%)
CMYKcmyk(15.9%, 80.1%, 0%, 40.8%)
CIE-LABlab(33.30, 56.51, -45.11)
CIE-LCHlch(33.30, 72.31, 321.40°)
OKLaboklab(45.02% 0.1434 -0.1269)
OKLCHoklch(45.02% 0.191 318.5)
XYZxyz(14.8018, 7.6756, 29.9740)
Luminance0.0767 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1E97 #36971E
analogous
#421E97 #7F1E97 #971E72
triadic
#7F1E97 #977F1E #1E977F
tetradic
#7F1E97 #97421E #36971E #1E7297
square
#7F1E97 #97421E #36971E #1E7297
split-complementary
#7F1E97 #72971E #1E9742
monochromatic
#290A31 #541464 #7F1E97 #AA28CA #C153DD

Accessibility & contrast

On white

8.28
#7F1E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7F1E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1E97
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1E97#FFFFFF#000000##FFFFFF
##7F1E971.008.282.538.28
#FFFFFF8.281.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489A
Deuteranopia (green-blind)
#255194
Tritanopia (blue-blind)
#7E395B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7f1e97;
/* rgb */ color: rgb(127, 30, 151);
/* oklch */ color: oklch(45.0% 0.191 318.5);
Tailwind
colors: {
  custom: {
    50: '#a867b6',
    500: '#7f1e97',
    950: '#000000',
  },
}
SCSS
$custom: #7f1e97;
$custom-light: #a867b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1e97",
  "rgb": {
    "r": 127,
    "g": 30,
    "b": 151
  },
  "hsl": {
    "h": 288.099,
    "s": 66.851,
    "l": 35.49
  },
  "oklch": {
    "l": 0.45022,
    "c": 0.19148,
    "h": 318.5
  },
  "luminance": 0.07675
}

Semantic roles & 50–950 ramp

primary
#7F1E97
secondary
#67C051
accent
#EA3E60
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F1E97

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

Preview Lab → · Contrast checker → · Palette generator →

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