#7F1E9D#7F1E9D

#7F1E9D is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.5% C 0.197 H 316.4°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#7F1E9D
RGBrgb(127, 30, 157)
HSLhsl(286, 68%, 37%)
HSVhsv(286, 81%, 62%)
CMYKcmyk(19.1%, 80.9%, 0%, 38.4%)
CIE-LABlab(33.72, 57.68, -48.08)
CIE-LCHlch(33.72, 75.09, 320.19°)
OKLaboklab(45.46% 0.1424 -0.1356)
OKLCHoklch(45.46% 0.197 316.4)
XYZxyz(15.3015, 7.8755, 32.6059)
Luminance0.0788 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1E9D #3C9D1E
analogous
#401E9D #7F1E9D #9D1E7C
triadic
#7F1E9D #9D7F1E #1E9D7F
tetradic
#7F1E9D #9D401E #3C9D1E #1E7C9D
square
#7F1E9D #9D401E #3C9D1E #1E7C9D
split-complementary
#7F1E9D #7C9D1E #1E9D40
monochromatic
#2C0A36 #55146A #7F1E9D #A928D0 #BF57DF

Accessibility & contrast

On white

8.16
#7F1E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7F1E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1E9D
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1E9D#FFFFFF#000000##FFFFFF
##7F1E9D1.008.162.588.16
#FFFFFF8.161.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA0
Deuteranopia (green-blind)
#1D529A
Tritanopia (blue-blind)
#7D3C5E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f1e9d;
/* rgb */ color: rgb(127, 30, 157);
/* oklch */ color: oklch(45.5% 0.197 316.4);
Tailwind
colors: {
  custom: {
    50: '#a867bb',
    500: '#7f1e9d',
    950: '#000000',
  },
}
SCSS
$custom: #7f1e9d;
$custom-light: #a867bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1e9d",
  "rgb": {
    "r": 127,
    "g": 30,
    "b": 157
  },
  "hsl": {
    "h": 285.827,
    "s": 67.914,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45455,
    "c": 0.19665,
    "h": 316.4
  },
  "luminance": 0.07875
}

Semantic roles & 50–950 ramp

primary
#7F1E9D
secondary
#6EC254
accent
#EB3D66
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F1E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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