#7E2592#7E2592

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

Color values

HEX#7E2592
RGBrgb(126, 37, 146)
HSLhsl(289, 60%, 36%)
HSVhsv(289, 75%, 57%)
CMYKcmyk(13.7%, 74.7%, 0%, 42.7%)
CIE-LABlab(33.64, 52.93, -41.51)
CIE-LCHlch(33.64, 67.27, 321.89°)
OKLaboklab(45.12% 0.1365 -0.1164)
OKLCHoklch(45.12% 0.179 319.5)
XYZxyz(14.4534, 7.8348, 27.9395)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2592 #399225
analogous
#472592 #7E2592 #92256F
triadic
#7E2592 #927E25 #25927E
tetradic
#7E2592 #924725 #399225 #256F92
square
#7E2592 #924725 #399225 #256F92
split-complementary
#7E2592 #6F9225 #259247
monochromatic
#2A0C30 #541961 #7E2592 #A831C3 #BF5CD6

Accessibility & contrast

On white

8.18
#7E2592 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7E2592 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2592
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2592#FFFFFF#000000##FFFFFF
##7E25921.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004995
Deuteranopia (green-blind)
#2E5290
Tritanopia (blue-blind)
#7E3B5A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e2592;
/* rgb */ color: rgb(126, 37, 146);
/* oklch */ color: oklch(45.1% 0.179 319.5);
Tailwind
colors: {
  custom: {
    50: '#a769b2',
    500: '#7e2592',
    950: '#000000',
  },
}
SCSS
$custom: #7e2592;
$custom-light: #a769b2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2592",
  "rgb": {
    "r": 126,
    "g": 37,
    "b": 146
  },
  "hsl": {
    "h": 288.991,
    "s": 59.563,
    "l": 35.882
  },
  "oklch": {
    "l": 0.45122,
    "c": 0.17937,
    "h": 319.5
  },
  "luminance": 0.07834
}

Semantic roles & 50–950 ramp

primary
#7E2592
secondary
#6ABA58
accent
#E34562
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2592

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

Preview Lab → · Contrast checker → · Palette generator →

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