#7E2D91#7E2D91

#7E2D91 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 45.9% C 0.169 H 319.4°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#7E2D91
RGBrgb(126, 45, 145)
HSLhsl(289, 53%, 37%)
HSVhsv(289, 69%, 57%)
CMYKcmyk(13.1%, 69%, 0%, 43.1%)
CIE-LABlab(34.72, 49.49, -39.17)
CIE-LCHlch(34.72, 63.12, 321.64°)
OKLaboklab(45.87% 0.128 -0.1096)
OKLCHoklch(45.87% 0.169 319.4)
XYZxyz(14.6527, 8.3574, 27.6239)
Luminance0.0836 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2D91 #40912D
analogous
#4C2D91 #7E2D91 #912D72
triadic
#7E2D91 #917E2D #2D917E
tetradic
#7E2D91 #914C2D #40912D #2D7291
square
#7E2D91 #914C2D #40912D #2D7291
split-complementary
#7E2D91 #72912D #2D914C
monochromatic
#2D1034 #551F62 #7E2D91 #A73BC0 #BC68D0

Accessibility & contrast

On white

7.86
#7E2D91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7E2D91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2D91
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2D91#FFFFFF#000000##FFFFFF
##7E2D911.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#054C94
Deuteranopia (green-blind)
#34548F
Tritanopia (blue-blind)
#7E3F5B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e2d91;
/* rgb */ color: rgb(126, 45, 145);
/* oklch */ color: oklch(45.9% 0.169 319.4);
Tailwind
colors: {
  custom: {
    50: '#a66db2',
    500: '#7e2d91',
    950: '#000000',
  },
}
SCSS
$custom: #7e2d91;
$custom-light: #a66db2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2d91",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 145
  },
  "hsl": {
    "h": 288.6,
    "s": 52.632,
    "l": 37.255
  },
  "oklch": {
    "l": 0.45873,
    "c": 0.16851,
    "h": 319.4
  },
  "luminance": 0.08357
}

Semantic roles & 50–950 ramp

primary
#7E2D91
secondary
#73B763
accent
#DC4C67
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2D91

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

Preview Lab → · Contrast checker → · Palette generator →

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