#7E2A8D#7E2A8D

#7E2A8D is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.3% C 0.169 H 321.2°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#7E2A8D
RGBrgb(126, 42, 141)
HSLhsl(291, 54%, 36%)
HSVhsv(291, 70%, 55%)
CMYKcmyk(10.6%, 70.2%, 0%, 44.7%)
CIE-LABlab(34.01, 49.97, -37.83)
CIE-LCHlch(34.01, 62.68, 322.87°)
OKLaboklab(45.29% 0.1315 -0.1057)
OKLCHoklch(45.29% 0.169 321.2)
XYZxyz(14.2393, 8.0154, 25.9912)
Luminance0.0801 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2A8D #398D2A
analogous
#4C2A8D #7E2A8D #8D2A6A
triadic
#7E2A8D #8D7E2A #2A8D7E
tetradic
#7E2A8D #8D4C2A #398D2A #2A6A8D
square
#7E2A8D #8D4C2A #398D2A #2A6A8D
split-complementary
#7E2A8D #6A8D2A #2A8D4C
monochromatic
#2A0E2F #541C5E #7E2A8D #A838BC #BF61D0

Accessibility & contrast

On white

8.07
#7E2A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7E2A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2A8D
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2A8D#FFFFFF#000000##FFFFFF
##7E2A8D1.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#054A90
Deuteranopia (green-blind)
#35538B
Tritanopia (blue-blind)
#7F3C58
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e2a8d;
/* rgb */ color: rgb(126, 42, 141);
/* oklch */ color: oklch(45.3% 0.169 321.2);
Tailwind
colors: {
  custom: {
    50: '#a66baf',
    500: '#7e2a8d',
    950: '#000000',
  },
}
SCSS
$custom: #7e2a8d;
$custom-light: #a66baf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2a8d",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 141
  },
  "hsl": {
    "h": 290.909,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.4529,
    "c": 0.16872,
    "h": 321.2
  },
  "luminance": 0.08015
}

Semantic roles & 50–950 ramp

primary
#7E2A8D
secondary
#6AB65D
accent
#DD4A61
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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