#7E2296#7E2296

#7E2296 is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.1% C 0.186 H 318.2°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#7E2296
RGBrgb(126, 34, 150)
HSLhsl(288, 63%, 36%)
HSVhsv(288, 77%, 59%)
CMYKcmyk(16%, 77.3%, 0%, 41.2%)
CIE-LABlab(33.53, 54.80, -44.14)
CIE-LCHlch(33.53, 70.36, 321.15°)
OKLaboklab(45.13% 0.1389 -0.1241)
OKLCHoklch(45.13% 0.186 318.2)
XYZxyz(14.6805, 7.7824, 29.5771)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2296 #3A9622
analogous
#442296 #7E2296 #962274
triadic
#7E2296 #967E22 #22967E
tetradic
#7E2296 #964422 #3A9622 #227496
square
#7E2296 #964422 #3A9622 #227496
split-complementary
#7E2296 #749622 #229644
monochromatic
#2A0B32 #541764 #7E2296 #A82DC8 #BF59D9

Accessibility & contrast

On white

8.21
#7E2296 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7E2296 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2296
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2296#FFFFFF#000000##FFFFFF
##7E22961.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004999
Deuteranopia (green-blind)
#285293
Tritanopia (blue-blind)
#7D3B5B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e2296;
/* rgb */ color: rgb(126, 34, 150);
/* oklch */ color: oklch(45.1% 0.186 318.2);
Tailwind
colors: {
  custom: {
    50: '#a768b5',
    500: '#7e2296',
    950: '#000000',
  },
}
SCSS
$custom: #7e2296;
$custom-light: #a768b5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2296",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 150
  },
  "hsl": {
    "h": 287.586,
    "s": 63.043,
    "l": 36.078
  },
  "oklch": {
    "l": 0.45128,
    "c": 0.18623,
    "h": 318.2
  },
  "luminance": 0.07782
}

Semantic roles & 50–950 ramp

primary
#7E2296
secondary
#6CBE56
accent
#E64264
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2296

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

Preview Lab → · Contrast checker → · Palette generator →

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