#7E2597#7E2597

#7E2597 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.5% C 0.184 H 317.7°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#7E2597
RGBrgb(126, 37, 151)
HSLhsl(287, 61%, 37%)
HSVhsv(287, 75%, 59%)
CMYKcmyk(16.6%, 75.5%, 0%, 40.8%)
CIE-LABlab(33.97, 53.92, -44.03)
CIE-LCHlch(33.97, 69.61, 320.76°)
OKLaboklab(45.47% 0.1359 -0.1238)
OKLCHoklch(45.47% 0.184 317.7)
XYZxyz(14.8509, 7.9938, 30.0328)
Luminance0.0799 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2597 #3E9725
analogous
#452597 #7E2597 #972577
triadic
#7E2597 #977E25 #25977E
tetradic
#7E2597 #974525 #3E9725 #257797
square
#7E2597 #974525 #3E9725 #257797
split-complementary
#7E2597 #779725 #259745
monochromatic
#2C0D35 #551966 #7E2597 #A731C8 #BD5FD8

Accessibility & contrast

On white

8.08
#7E2597 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7E2597 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2597
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2597#FFFFFF#000000##FFFFFF
##7E25971.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9A
Deuteranopia (green-blind)
#295394
Tritanopia (blue-blind)
#7D3D5C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e2597;
/* rgb */ color: rgb(126, 37, 151);
/* oklch */ color: oklch(45.5% 0.184 317.7);
Tailwind
colors: {
  custom: {
    50: '#a769b6',
    500: '#7e2597',
    950: '#000000',
  },
}
SCSS
$custom: #7e2597;
$custom-light: #a769b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2597",
  "rgb": {
    "r": 126,
    "g": 37,
    "b": 151
  },
  "hsl": {
    "h": 286.842,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45465,
    "c": 0.18388,
    "h": 317.7
  },
  "luminance": 0.07993
}

Semantic roles & 50–950 ramp

primary
#7E2597
secondary
#70BD5B
accent
#E44467
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2597

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

Preview Lab → · Contrast checker → · Palette generator →

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