#7E2291#7E2291

#7E2291 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.8% C 0.182 H 320.1°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#7E2291
RGBrgb(126, 34, 145)
HSLhsl(290, 62%, 35%)
HSVhsv(290, 77%, 57%)
CMYKcmyk(13.1%, 76.6%, 0%, 43.1%)
CIE-LABlab(33.19, 53.83, -41.62)
CIE-LCHlch(33.19, 68.04, 322.29°)
OKLaboklab(44.78% 0.1394 -0.1167)
OKLCHoklch(44.78% 0.182 320.1)
XYZxyz(14.2864, 7.6247, 27.5018)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2291 #359122
analogous
#472291 #7E2291 #91226C
triadic
#7E2291 #917E22 #22917E
tetradic
#7E2291 #914722 #359122 #226C91
square
#7E2291 #914722 #359122 #226C91
split-complementary
#7E2291 #6C9122 #229147
monochromatic
#280B2E #53165F #7E2291 #A92EC3 #C156D7

Accessibility & contrast

On white

8.32
#7E2291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#7E2291 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2291
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2291#FFFFFF#000000##FFFFFF
##7E22911.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004894
Deuteranopia (green-blind)
#2D518E
Tritanopia (blue-blind)
#7E3958
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e2291;
/* rgb */ color: rgb(126, 34, 145);
/* oklch */ color: oklch(44.8% 0.182 320.1);
Tailwind
colors: {
  custom: {
    50: '#a768b2',
    500: '#7e2291',
    950: '#000000',
  },
}
SCSS
$custom: #7e2291;
$custom-light: #a768b2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2291",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 145
  },
  "hsl": {
    "h": 289.73,
    "s": 62.011,
    "l": 35.098
  },
  "oklch": {
    "l": 0.44783,
    "c": 0.18184,
    "h": 320.1
  },
  "luminance": 0.07624
}

Semantic roles & 50–950 ramp

primary
#7E2291
secondary
#65BB53
accent
#E5435F
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2291

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

Preview Lab → · Contrast checker → · Palette generator →

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