#7F1E99#7F1E99

#7F1E99 is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.2% C 0.193 H 317.8°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#7F1E99
RGBrgb(127, 30, 153)
HSLhsl(287, 67%, 36%)
HSVhsv(287, 80%, 60%)
CMYKcmyk(17%, 80.4%, 0%, 40%)
CIE-LABlab(33.44, 56.90, -46.10)
CIE-LCHlch(33.44, 73.23, 320.98°)
OKLaboklab(45.17% 0.1431 -0.1298)
OKLCHoklch(45.17% 0.193 317.8)
XYZxyz(14.9656, 7.7412, 30.8367)
Luminance0.0774 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1E99 #38991E
analogous
#411E99 #7F1E99 #991E75
triadic
#7F1E99 #997F1E #1E997F
tetradic
#7F1E99 #99411E #38991E #1E7599
square
#7F1E99 #99411E #38991E #1E7599
split-complementary
#7F1E99 #75991E #1E9941
monochromatic
#2A0A33 #551466 #7F1E99 #A928CC #C054DD

Accessibility & contrast

On white

8.24
#7F1E99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7F1E99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1E99
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1E99#FFFFFF#000000##FFFFFF
##7F1E991.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499C
Deuteranopia (green-blind)
#235196
Tritanopia (blue-blind)
#7E3A5C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f1e99;
/* rgb */ color: rgb(127, 30, 153);
/* oklch */ color: oklch(45.2% 0.193 317.8);
Tailwind
colors: {
  custom: {
    50: '#a867b8',
    500: '#7f1e99',
    950: '#000000',
  },
}
SCSS
$custom: #7f1e99;
$custom-light: #a867b8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1e99",
  "rgb": {
    "r": 127,
    "g": 30,
    "b": 153
  },
  "hsl": {
    "h": 287.317,
    "s": 67.213,
    "l": 35.882
  },
  "oklch": {
    "l": 0.45165,
    "c": 0.1932,
    "h": 317.8
  },
  "luminance": 0.0774
}

Semantic roles & 50–950 ramp

primary
#7F1E99
secondary
#69C152
accent
#EA3E62
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F1E99

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

Preview Lab → · Contrast checker → · Palette generator →

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