#7E2E98#7E2E98

#7E2E98 is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.4% C 0.174 H 316.7°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#7E2E98
RGBrgb(126, 46, 152)
HSLhsl(285, 54%, 39%)
HSVhsv(285, 70%, 60%)
CMYKcmyk(17.1%, 69.7%, 0%, 40.4%)
CIE-LABlab(35.32, 50.49, -42.48)
CIE-LCHlch(35.32, 65.99, 319.92°)
OKLaboklab(46.45% 0.1265 -0.1193)
OKLCHoklch(46.45% 0.174 316.7)
XYZxyz(15.2478, 8.6572, 30.5675)
Luminance0.0866 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2E98 #48982E
analogous
#492E98 #7E2E98 #982E7D
triadic
#7E2E98 #987E2E #2E987E
tetradic
#7E2E98 #98492E #48982E #2E7D98
square
#7E2E98 #98492E #48982E #2E7D98
split-complementary
#7E2E98 #7D982E #2E9849
monochromatic
#30123A #572069 #7E2E98 #A43EC5 #BA6DD3

Accessibility & contrast

On white

7.69
#7E2E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#7E2E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2E98
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2E98#FFFFFF#000000##FFFFFF
##7E2E981.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9B
Deuteranopia (green-blind)
#2F5596
Tritanopia (blue-blind)
#7D435F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e2e98;
/* rgb */ color: rgb(126, 46, 152);
/* oklch */ color: oklch(46.4% 0.174 316.7);
Tailwind
colors: {
  custom: {
    50: '#a76eb7',
    500: '#7e2e98',
    950: '#000000',
  },
}
SCSS
$custom: #7e2e98;
$custom-light: #a76eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2e98",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 152
  },
  "hsl": {
    "h": 285.283,
    "s": 53.535,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46446,
    "c": 0.17389,
    "h": 316.7
  },
  "luminance": 0.08657
}

Semantic roles & 50–950 ramp

primary
#7E2E98
secondary
#7CBA68
accent
#DD4B6F
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2E98

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

Preview Lab → · Contrast checker → · Palette generator →

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