#7E2497#7E2497

#7E2497 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.4% C 0.185 H 317.7°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#7E2497
RGBrgb(126, 36, 151)
HSLhsl(287, 61%, 37%)
HSVhsv(287, 76%, 59%)
CMYKcmyk(16.6%, 76.2%, 0%, 40.8%)
CIE-LABlab(33.84, 54.28, -44.24)
CIE-LCHlch(33.84, 70.03, 320.82°)
OKLaboklab(45.37% 0.1369 -0.1244)
OKLCHoklch(45.37% 0.185 317.7)
XYZxyz(14.8202, 7.9324, 30.0226)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2497 #3D9724
analogous
#452497 #7E2497 #972477
triadic
#7E2497 #977E24 #24977E
tetradic
#7E2497 #974524 #3D9724 #247797
square
#7E2497 #974524 #3D9724 #247797
split-complementary
#7E2497 #779724 #249745
monochromatic
#2C0C34 #551866 #7E2497 #A730C8 #BE5DD8

Accessibility & contrast

On white

8.12
#7E2497 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7E2497 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2497
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2497#FFFFFF#000000##FFFFFF
##7E24971.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e2497;
/* rgb */ color: rgb(126, 36, 151);
/* oklch */ color: oklch(45.4% 0.185 317.7);
Tailwind
colors: {
  custom: {
    50: '#a769b6',
    500: '#7e2497',
    950: '#000000',
  },
}
SCSS
$custom: #7e2497;
$custom-light: #a769b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2497",
  "rgb": {
    "r": 126,
    "g": 36,
    "b": 151
  },
  "hsl": {
    "h": 286.957,
    "s": 61.497,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45374,
    "c": 0.18498,
    "h": 317.7
  },
  "luminance": 0.07932
}

Semantic roles & 50–950 ramp

primary
#7E2497
secondary
#6FBD5A
accent
#E54366
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2497

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

Preview Lab → · Contrast checker → · Palette generator →

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