#7E2A98#7E2A98

#7E2A98 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.0% C 0.179 H 317.0°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#7E2A98
RGBrgb(126, 42, 152)
HSLhsl(286, 57%, 38%)
HSVhsv(286, 72%, 60%)
CMYKcmyk(17.1%, 72.4%, 0%, 40.4%)
CIE-LABlab(34.72, 52.17, -43.44)
CIE-LCHlch(34.72, 67.89, 320.22°)
OKLaboklab(46.02% 0.1308 -0.1221)
OKLCHoklch(46.02% 0.179 317)
XYZxyz(15.0988, 8.3592, 30.5178)
Luminance0.0836 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2A98 #44982A
analogous
#472A98 #7E2A98 #982A7B
triadic
#7E2A98 #987E2A #2A987E
tetradic
#7E2A98 #98472A #44982A #2A7B98
square
#7E2A98 #98472A #44982A #2A7B98
split-complementary
#7E2A98 #7B982A #2A9847
monochromatic
#2F1038 #561D68 #7E2A98 #A637C8 #BB67D5

Accessibility & contrast

On white

7.86
#7E2A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7E2A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2A98
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2A98#FFFFFF#000000##FFFFFF
##7E2A981.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9B
Deuteranopia (green-blind)
#2C5495
Tritanopia (blue-blind)
#7D405E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e2a98;
/* rgb */ color: rgb(126, 42, 152);
/* oklch */ color: oklch(46.0% 0.179 317.0);
Tailwind
colors: {
  custom: {
    50: '#a76cb7',
    500: '#7e2a98',
    950: '#000000',
  },
}
SCSS
$custom: #7e2a98;
$custom-light: #a76cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2a98",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 152
  },
  "hsl": {
    "h": 285.818,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.4602,
    "c": 0.17894,
    "h": 317
  },
  "luminance": 0.08359
}

Semantic roles & 50–950 ramp

primary
#7E2A98
secondary
#77BB62
accent
#E0486C
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2A98

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

Preview Lab → · Contrast checker → · Palette generator →

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