#7E2A93#7E2A93

#7E2A93 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.7% C 0.174 H 318.8°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#7E2A93
RGBrgb(126, 42, 147)
HSLhsl(288, 56%, 37%)
HSVhsv(288, 71%, 58%)
CMYKcmyk(14.3%, 71.4%, 0%, 42.4%)
CIE-LABlab(34.39, 51.16, -40.91)
CIE-LCHlch(34.39, 65.51, 321.35°)
OKLaboklab(45.68% 0.1312 -0.1147)
OKLCHoklch(45.68% 0.174 318.8)
XYZxyz(14.6979, 8.1988, 28.4064)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2A93 #3F932A
analogous
#4A2A93 #7E2A93 #932A74
triadic
#7E2A93 #937E2A #2A937E
tetradic
#7E2A93 #934A2A #3F932A #2A7493
square
#7E2A93 #934A2A #3F932A #2A7493
split-complementary
#7E2A93 #74932A #2A934A
monochromatic
#2C0F34 #551C63 #7E2A93 #A738C3 #BD65D3

Accessibility & contrast

On white

7.96
#7E2A93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#7E2A93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2A93
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2A93#FFFFFF#000000##FFFFFF
##7E2A931.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B96
Deuteranopia (green-blind)
#305491
Tritanopia (blue-blind)
#7E3E5B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e2a93;
/* rgb */ color: rgb(126, 42, 147);
/* oklch */ color: oklch(45.7% 0.174 318.8);
Tailwind
colors: {
  custom: {
    50: '#a76bb3',
    500: '#7e2a93',
    950: '#000000',
  },
}
SCSS
$custom: #7e2a93;
$custom-light: #a76bb3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2a93",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 147
  },
  "hsl": {
    "h": 288,
    "s": 55.556,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45683,
    "c": 0.17428,
    "h": 318.8
  },
  "luminance": 0.08198
}

Semantic roles & 50–950 ramp

primary
#7E2A93
secondary
#72B960
accent
#DF4967
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2A93

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

Preview Lab → · Contrast checker → · Palette generator →

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