#7E2892#7E2892

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

Color values

HEX#7E2892
RGBrgb(126, 40, 146)
HSLhsl(289, 57%, 36%)
HSVhsv(289, 73%, 57%)
CMYKcmyk(13.7%, 72.6%, 0%, 42.7%)
CIE-LABlab(34.04, 51.77, -40.86)
CIE-LCHlch(34.04, 65.95, 321.72°)
OKLaboklab(45.41% 0.1334 -0.1145)
OKLCHoklch(45.41% 0.176 319.4)
XYZxyz(14.5506, 8.0292, 27.9719)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2892 #3C9228
analogous
#492892 #7E2892 #922871
triadic
#7E2892 #927E28 #28927E
tetradic
#7E2892 #924928 #3C9228 #287192
square
#7E2892 #924928 #3C9228 #287192
split-complementary
#7E2892 #719228 #289249
monochromatic
#2B0E32 #551B62 #7E2892 #A735C2 #BE61D4

Accessibility & contrast

On white

8.06
#7E2892 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7E2892 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2892
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2892#FFFFFF#000000##FFFFFF
##7E28921.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A95
Deuteranopia (green-blind)
#305390
Tritanopia (blue-blind)
#7E3C5A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e2892;
/* rgb */ color: rgb(126, 40, 146);
/* oklch */ color: oklch(45.4% 0.176 319.4);
Tailwind
colors: {
  custom: {
    50: '#a76ab2',
    500: '#7e2892',
    950: '#000000',
  },
}
SCSS
$custom: #7e2892;
$custom-light: #a76ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2892",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 146
  },
  "hsl": {
    "h": 288.679,
    "s": 56.989,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45412,
    "c": 0.17582,
    "h": 319.4
  },
  "luminance": 0.08029
}

Semantic roles & 50–950 ramp

primary
#7E2892
secondary
#6EB95D
accent
#E04864
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2892

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

Preview Lab → · Contrast checker → · Palette generator →

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