#7E2596#7E2596

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

Color values

HEX#7E2596
RGBrgb(126, 37, 150)
HSLhsl(287, 60%, 37%)
HSVhsv(287, 75%, 59%)
CMYKcmyk(16%, 75.3%, 0%, 41.2%)
CIE-LABlab(33.90, 53.72, -43.53)
CIE-LCHlch(33.90, 69.14, 320.98°)
OKLaboklab(45.4% 0.1361 -0.1223)
OKLCHoklch(45.4% 0.183 318)
XYZxyz(14.7700, 7.9614, 29.6070)
Luminance0.0796 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2596 #3D9625
analogous
#462596 #7E2596 #962576
triadic
#7E2596 #967E25 #25967E
tetradic
#7E2596 #964625 #3D9625 #257696
square
#7E2596 #964625 #3D9625 #257696
split-complementary
#7E2596 #769625 #259646
monochromatic
#2C0D34 #551965 #7E2596 #A731C7 #BE5ED7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E2596#FFFFFF#000000##FFFFFF
##7E25961.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)
#004A99
Deuteranopia (green-blind)
#2A5293
Tritanopia (blue-blind)
#7D3C5C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e2596;
/* rgb */ color: rgb(126, 37, 150);
/* oklch */ color: oklch(45.4% 0.183 318.0);
Tailwind
colors: {
  custom: {
    50: '#a769b5',
    500: '#7e2596',
    950: '#000000',
  },
}
SCSS
$custom: #7e2596;
$custom-light: #a769b5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2596",
  "rgb": {
    "r": 126,
    "g": 37,
    "b": 150
  },
  "hsl": {
    "h": 287.257,
    "s": 60.428,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45396,
    "c": 0.18297,
    "h": 318
  },
  "luminance": 0.07961
}

Semantic roles & 50–950 ramp

primary
#7E2596
secondary
#6FBC5B
accent
#E44466
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2596

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

Preview Lab → · Contrast checker → · Palette generator →

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