#7F2491#7F2491

#7F2491 is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.1% C 0.180 H 320.4°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#7F2491
RGBrgb(127, 36, 145)
HSLhsl(290, 60%, 35%)
HSVhsv(290, 75%, 57%)
CMYKcmyk(12.4%, 75.2%, 0%, 43.1%)
CIE-LABlab(33.60, 53.32, -40.94)
CIE-LCHlch(33.60, 67.23, 322.48°)
OKLaboklab(45.11% 0.1388 -0.1147)
OKLCHoklch(45.11% 0.18 320.4)
XYZxyz(14.4935, 7.8189, 27.5283)
Luminance0.0782 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2491 #369124
analogous
#492491 #7F2491 #91246C
triadic
#7F2491 #917F24 #24917F
tetradic
#7F2491 #914924 #369124 #246C91
square
#7F2491 #914924 #369124 #246C91
split-complementary
#7F2491 #6C9124 #249149
monochromatic
#290C2F #541860 #7F2491 #AA30C2 #C159D6

Accessibility & contrast

On white

8.19
#7F2491 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7F2491 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2491
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2491#FFFFFF#000000##FFFFFF
##7F24911.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004994
Deuteranopia (green-blind)
#2F528F
Tritanopia (blue-blind)
#803959
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f2491;
/* rgb */ color: rgb(127, 36, 145);
/* oklch */ color: oklch(45.1% 0.180 320.4);
Tailwind
colors: {
  custom: {
    50: '#a869b2',
    500: '#7f2491',
    950: '#000000',
  },
}
SCSS
$custom: #7f2491;
$custom-light: #a869b2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2491",
  "rgb": {
    "r": 127,
    "g": 36,
    "b": 145
  },
  "hsl": {
    "h": 290.092,
    "s": 60.221,
    "l": 35.49
  },
  "oklch": {
    "l": 0.45109,
    "c": 0.18005,
    "h": 320.4
  },
  "luminance": 0.07818
}

Semantic roles & 50–950 ramp

primary
#7F2491
secondary
#67BA56
accent
#E3445F
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2491

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

Preview Lab → · Contrast checker → · Palette generator →

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