#7E2399#7E2399

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

Color values

HEX#7E2399
RGBrgb(126, 35, 153)
HSLhsl(286, 63%, 37%)
HSVhsv(286, 77%, 60%)
CMYKcmyk(17.6%, 77.1%, 0%, 40%)
CIE-LABlab(33.85, 55.04, -45.44)
CIE-LCHlch(33.85, 71.37, 320.46°)
OKLaboklab(45.43% 0.1376 -0.1279)
OKLCHoklch(45.43% 0.188 317.1)
XYZxyz(14.9541, 7.9382, 30.8753)
Luminance0.0794 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2399 #3E9923
analogous
#432399 #7E2399 #992379
triadic
#7E2399 #997E23 #23997E
tetradic
#7E2399 #994323 #3E9923 #237999
square
#7E2399 #994323 #3E9923 #237999
split-complementary
#7E2399 #799923 #239943
monochromatic
#2C0C35 #551867 #7E2399 #A72ECB #BD5DDA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E2399#FFFFFF#000000##FFFFFF
##7E23991.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)
#004A9C
Deuteranopia (green-blind)
#255296
Tritanopia (blue-blind)
#7D3D5D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e2399;
/* rgb */ color: rgb(126, 35, 153);
/* oklch */ color: oklch(45.4% 0.188 317.1);
Tailwind
colors: {
  custom: {
    50: '#a768b8',
    500: '#7e2399',
    950: '#000000',
  },
}
SCSS
$custom: #7e2399;
$custom-light: #a768b8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2399",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 153
  },
  "hsl": {
    "h": 286.271,
    "s": 62.766,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45426,
    "c": 0.18785,
    "h": 317.1
  },
  "luminance": 0.07938
}

Semantic roles & 50–950 ramp

primary
#7E2399
secondary
#70BE59
accent
#E64267
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2399

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

Preview Lab → · Contrast checker → · Palette generator →

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