#7E2599#7E2599

#7E2599 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.6% C 0.186 H 317.0°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#7E2599
RGBrgb(126, 37, 153)
HSLhsl(286, 61%, 37%)
HSVhsv(286, 76%, 60%)
CMYKcmyk(17.6%, 75.8%, 0%, 40%)
CIE-LABlab(34.11, 54.32, -45.03)
CIE-LCHlch(34.11, 70.56, 320.34°)
OKLaboklab(45.61% 0.1357 -0.1267)
OKLCHoklch(45.61% 0.186 317)
XYZxyz(15.0147, 8.0593, 30.8955)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2599 #409925
analogous
#442599 #7E2599 #99257A
triadic
#7E2599 #997E25 #25997E
tetradic
#7E2599 #994425 #409925 #257A99
square
#7E2599 #994425 #409925 #257A99
split-complementary
#7E2599 #7A9925 #259944
monochromatic
#2D0D36 #551968 #7E2599 #A731CA #BC60D9

Accessibility & contrast

On white

8.04
#7E2599 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7E2599 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2599
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2599#FFFFFF#000000##FFFFFF
##7E25991.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9C
Deuteranopia (green-blind)
#275396
Tritanopia (blue-blind)
#7D3E5D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e2599;
/* rgb */ color: rgb(126, 37, 153);
/* oklch */ color: oklch(45.6% 0.186 317.0);
Tailwind
colors: {
  custom: {
    50: '#a769b8',
    500: '#7e2599',
    950: '#000000',
  },
}
SCSS
$custom: #7e2599;
$custom-light: #a769b8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2599",
  "rgb": {
    "r": 126,
    "g": 37,
    "b": 153
  },
  "hsl": {
    "h": 286.034,
    "s": 61.053,
    "l": 37.255
  },
  "oklch": {
    "l": 0.45605,
    "c": 0.18569,
    "h": 317
  },
  "luminance": 0.08059
}

Semantic roles & 50–950 ramp

primary
#7E2599
secondary
#73BE5C
accent
#E44469
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2599

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

Preview Lab → · Contrast checker → · Palette generator →

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