#7E2F91#7E2F91

#7E2F91 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.1% C 0.166 H 319.3°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#7E2F91
RGBrgb(126, 47, 145)
HSLhsl(288, 51%, 38%)
HSVhsv(288, 68%, 57%)
CMYKcmyk(13.1%, 67.6%, 0%, 43.1%)
CIE-LABlab(35.03, 48.62, -38.67)
CIE-LCHlch(35.03, 62.12, 321.50°)
OKLaboklab(46.1% 0.1256 -0.1082)
OKLCHoklch(46.1% 0.166 319.3)
XYZxyz(14.7309, 8.5137, 27.6499)
Luminance0.0851 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2F91 #42912F
analogous
#4D2F91 #7E2F91 #912F73
triadic
#7E2F91 #917E2F #2F917E
tetradic
#7E2F91 #914D2F #42912F #2F7391
square
#7E2F91 #914D2F #42912F #2F7391
split-complementary
#7E2F91 #73912F #2F914D
monochromatic
#2E1135 #562063 #7E2F91 #A63EBF #BC6BCF

Accessibility & contrast

On white

7.77
#7E2F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#7E2F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2F91
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2F91#FFFFFF#000000##FFFFFF
##7E2F911.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C4D94
Deuteranopia (green-blind)
#36558F
Tritanopia (blue-blind)
#7E405C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e2f91;
/* rgb */ color: rgb(126, 47, 145);
/* oklch */ color: oklch(46.1% 0.166 319.3);
Tailwind
colors: {
  custom: {
    50: '#a66eb2',
    500: '#7e2f91',
    950: '#000000',
  },
}
SCSS
$custom: #7e2f91;
$custom-light: #a66eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2f91",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 145
  },
  "hsl": {
    "h": 288.367,
    "s": 51.042,
    "l": 37.647
  },
  "oklch": {
    "l": 0.46099,
    "c": 0.16579,
    "h": 319.3
  },
  "luminance": 0.08513
}

Semantic roles & 50–950 ramp

primary
#7E2F91
secondary
#75B665
accent
#DB4D69
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2F91

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

Preview Lab → · Contrast checker → · Palette generator →

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