#7F2591#7F2591

#7F2591 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.2% C 0.179 H 320.4°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#7F2591
RGBrgb(127, 37, 145)
HSLhsl(290, 59%, 36%)
HSVhsv(290, 74%, 57%)
CMYKcmyk(12.4%, 74.5%, 0%, 43.1%)
CIE-LABlab(33.73, 52.95, -40.74)
CIE-LCHlch(33.73, 66.81, 322.43°)
OKLaboklab(45.2% 0.1378 -0.1141)
OKLCHoklch(45.2% 0.179 320.4)
XYZxyz(14.5242, 7.8802, 27.5386)
Luminance0.0788 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2591 #379125
analogous
#492591 #7F2591 #91256D
triadic
#7F2591 #917F25 #25917F
tetradic
#7F2591 #914925 #379125 #256D91
square
#7F2591 #914925 #379125 #256D91
split-complementary
#7F2591 #6D9125 #259149
monochromatic
#2A0C2F #541960 #7F2591 #AA31C2 #C15BD5

Accessibility & contrast

On white

8.15
#7F2591 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2591
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2591#FFFFFF#000000##FFFFFF
##7F25911.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004994
Deuteranopia (green-blind)
#30528F
Tritanopia (blue-blind)
#803A59
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f2591;
/* rgb */ color: rgb(127, 37, 145);
/* oklch */ color: oklch(45.2% 0.179 320.4);
Tailwind
colors: {
  custom: {
    50: '#a869b2',
    500: '#7f2591',
    950: '#000000',
  },
}
SCSS
$custom: #7f2591;
$custom-light: #a869b2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2591",
  "rgb": {
    "r": 127,
    "g": 37,
    "b": 145
  },
  "hsl": {
    "h": 290,
    "s": 59.341,
    "l": 35.686
  },
  "oklch": {
    "l": 0.45201,
    "c": 0.1789,
    "h": 320.4
  },
  "luminance": 0.07879
}

Semantic roles & 50–950 ramp

primary
#7F2591
secondary
#68BA58
accent
#E3455F
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2591

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

Preview Lab → · Contrast checker → · Palette generator →

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