#7E2292#7E2292

#7E2292 is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.9% C 0.183 H 319.7°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#7E2292
RGBrgb(126, 34, 146)
HSLhsl(289, 62%, 35%)
HSVhsv(289, 77%, 57%)
CMYKcmyk(13.7%, 76.7%, 0%, 42.7%)
CIE-LABlab(33.26, 54.02, -42.12)
CIE-LCHlch(33.26, 68.50, 322.05°)
OKLaboklab(44.85% 0.1393 -0.1182)
OKLCHoklch(44.85% 0.183 319.7)
XYZxyz(14.3639, 7.6557, 27.9097)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2292 #369222
analogous
#462292 #7E2292 #92226E
triadic
#7E2292 #927E22 #22927E
tetradic
#7E2292 #924622 #369222 #226E92
square
#7E2292 #924622 #369222 #226E92
split-complementary
#7E2292 #6E9222 #229246
monochromatic
#280B2F #531660 #7E2292 #A92EC4 #C157D8

Accessibility & contrast

On white

8.30
#7E2292 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7E2292 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2292
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2292#FFFFFF#000000##FFFFFF
##7E22921.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004895
Deuteranopia (green-blind)
#2C518F
Tritanopia (blue-blind)
#7E3959
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e2292;
/* rgb */ color: rgb(126, 34, 146);
/* oklch */ color: oklch(44.9% 0.183 319.7);
Tailwind
colors: {
  custom: {
    50: '#a768b3',
    500: '#7e2292',
    950: '#000000',
  },
}
SCSS
$custom: #7e2292;
$custom-light: #a768b3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2292",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 146
  },
  "hsl": {
    "h": 289.286,
    "s": 62.222,
    "l": 35.294
  },
  "oklch": {
    "l": 0.44851,
    "c": 0.18271,
    "h": 319.7
  },
  "luminance": 0.07655
}

Semantic roles & 50–950 ramp

primary
#7E2292
secondary
#67BC54
accent
#E54360
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2292

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

Preview Lab → · Contrast checker → · Palette generator →

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