#7E2D98#7E2D98

#7E2D98 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.3% C 0.175 H 316.7°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#7E2D98
RGBrgb(126, 45, 152)
HSLhsl(285, 54%, 39%)
HSVhsv(285, 70%, 60%)
CMYKcmyk(17.1%, 70.4%, 0%, 40.4%)
CIE-LABlab(35.16, 50.92, -42.73)
CIE-LCHlch(35.16, 66.47, 320.00°)
OKLaboklab(46.34% 0.1276 -0.12)
OKLCHoklch(46.34% 0.175 316.7)
XYZxyz(15.2092, 8.5800, 30.5546)
Luminance0.0858 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2D98 #47982D
analogous
#482D98 #7E2D98 #982D7C
triadic
#7E2D98 #987E2D #2D987E
tetradic
#7E2D98 #98482D #47982D #2D7C98
square
#7E2D98 #98482D #47982D #2D7C98
split-complementary
#7E2D98 #7C982D #2D9848
monochromatic
#30113A #571F69 #7E2D98 #A43DC5 #BA6CD3

Accessibility & contrast

On white

7.73
#7E2D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7E2D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2D98
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2D98#FFFFFF#000000##FFFFFF
##7E2D981.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e2d98;
/* rgb */ color: rgb(126, 45, 152);
/* oklch */ color: oklch(46.3% 0.175 316.7);
Tailwind
colors: {
  custom: {
    50: '#a76db7',
    500: '#7e2d98',
    950: '#000000',
  },
}
SCSS
$custom: #7e2d98;
$custom-light: #a76db7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2d98",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 152
  },
  "hsl": {
    "h": 285.421,
    "s": 54.315,
    "l": 38.627
  },
  "oklch": {
    "l": 0.46336,
    "c": 0.17518,
    "h": 316.7
  },
  "luminance": 0.08579
}

Semantic roles & 50–950 ramp

primary
#7E2D98
secondary
#7BBA66
accent
#DE4A6E
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2D98

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

Preview Lab → · Contrast checker → · Palette generator →

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