#7E2498#7E2498

#7E2498 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.4% C 0.186 H 317.4°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#7E2498
RGBrgb(126, 36, 152)
HSLhsl(287, 62%, 37%)
HSVhsv(287, 76%, 60%)
CMYKcmyk(17.1%, 76.3%, 0%, 40.4%)
CIE-LABlab(33.91, 54.48, -44.74)
CIE-LCHlch(33.91, 70.50, 320.61°)
OKLaboklab(45.44% 0.1368 -0.1259)
OKLCHoklch(45.44% 0.186 317.4)
XYZxyz(14.9017, 7.9650, 30.4521)
Luminance0.0796 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2498 #3E9824
analogous
#442498 #7E2498 #982478
triadic
#7E2498 #987E24 #24987E
tetradic
#7E2498 #984424 #3E9824 #247898
square
#7E2498 #984424 #3E9824 #247898
split-complementary
#7E2498 #789824 #249844
monochromatic
#2C0D35 #551867 #7E2498 #A730C9 #BD5ED9

Accessibility & contrast

On white

8.10
#7E2498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2498
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2498#FFFFFF#000000##FFFFFF
##7E24981.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e2498;
/* rgb */ color: rgb(126, 36, 152);
/* oklch */ color: oklch(45.4% 0.186 317.4);
Tailwind
colors: {
  custom: {
    50: '#a769b7',
    500: '#7e2498',
    950: '#000000',
  },
}
SCSS
$custom: #7e2498;
$custom-light: #a769b7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2498",
  "rgb": {
    "r": 126,
    "g": 36,
    "b": 152
  },
  "hsl": {
    "h": 286.552,
    "s": 61.702,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45444,
    "c": 0.18588,
    "h": 317.4
  },
  "luminance": 0.07964
}

Semantic roles & 50–950 ramp

primary
#7E2498
secondary
#70BE5A
accent
#E54367
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2498

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

Preview Lab → · Contrast checker → · Palette generator →

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