#7E2598#7E2598

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

Color values

HEX#7E2598
RGBrgb(126, 37, 152)
HSLhsl(286, 61%, 37%)
HSVhsv(286, 76%, 60%)
CMYKcmyk(17.1%, 75.7%, 0%, 40.4%)
CIE-LABlab(34.04, 54.11, -44.53)
CIE-LCHlch(34.04, 70.08, 320.55°)
OKLaboklab(45.54% 0.1358 -0.1253)
OKLCHoklch(45.54% 0.185 317.3)
XYZxyz(14.9324, 8.0264, 30.4624)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2598 #3F9825
analogous
#452598 #7E2598 #982579
triadic
#7E2598 #987E25 #25987E
tetradic
#7E2598 #984525 #3F9825 #257998
square
#7E2598 #984525 #3F9825 #257998
split-complementary
#7E2598 #799825 #259845
monochromatic
#2C0D36 #551967 #7E2598 #A731C9 #BD5FD8

Accessibility & contrast

On white

8.06
#7E2598 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2598
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2598#FFFFFF#000000##FFFFFF
##7E25981.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9B
Deuteranopia (green-blind)
#285395
Tritanopia (blue-blind)
#7D3D5D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e2598;
/* rgb */ color: rgb(126, 37, 152);
/* oklch */ color: oklch(45.5% 0.185 317.3);
Tailwind
colors: {
  custom: {
    50: '#a769b7',
    500: '#7e2598',
    950: '#000000',
  },
}
SCSS
$custom: #7e2598;
$custom-light: #a769b7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2598",
  "rgb": {
    "r": 126,
    "g": 37,
    "b": 152
  },
  "hsl": {
    "h": 286.435,
    "s": 60.847,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45535,
    "c": 0.18478,
    "h": 317.3
  },
  "luminance": 0.08026
}

Semantic roles & 50–950 ramp

primary
#7E2598
secondary
#72BD5C
accent
#E44468
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2598

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

Preview Lab → · Contrast checker → · Palette generator →

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