#7E2B8A#7E2B8A

#7E2B8A is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.2% C 0.165 H 322.4°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#7E2B8A
RGBrgb(126, 43, 138)
HSLhsl(292, 52%, 35%)
HSVhsv(292, 69%, 54%)
CMYKcmyk(8.7%, 68.8%, 0%, 45.9%)
CIE-LABlab(33.98, 48.97, -36.04)
CIE-LCHlch(33.98, 60.80, 323.65°)
OKLaboklab(45.21% 0.1304 -0.1005)
OKLCHoklch(45.21% 0.165 322.4)
XYZxyz(14.0550, 7.9991, 24.8435)
Luminance0.0800 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2B8A #378A2B
analogous
#4E2B8A #7E2B8A #8A2B66
triadic
#7E2B8A #8A7E2B #2B8A7E
tetradic
#7E2B8A #8A4E2B #378A2B #2B668A
square
#7E2B8A #8A4E2B #378A2B #2B668A
split-complementary
#7E2B8A #668A2B #2B8A4E
monochromatic
#290E2D #531C5B #7E2B8A #A93AB9 #C061CE

Accessibility & contrast

On white

8.08
#7E2B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2B8A
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2B8A#FFFFFF#000000##FFFFFF
##7E2B8A1.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104A8D
Deuteranopia (green-blind)
#385388
Tritanopia (blue-blind)
#803B57
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e2b8a;
/* rgb */ color: rgb(126, 43, 138);
/* oklch */ color: oklch(45.2% 0.165 322.4);
Tailwind
colors: {
  custom: {
    50: '#a66cac',
    500: '#7e2b8a',
    950: '#000000',
  },
}
SCSS
$custom: #7e2b8a;
$custom-light: #a66cac;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2b8a",
  "rgb": {
    "r": 126,
    "g": 43,
    "b": 138
  },
  "hsl": {
    "h": 292.421,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.45207,
    "c": 0.16465,
    "h": 322.4
  },
  "luminance": 0.07998
}

Semantic roles & 50–950 ramp

primary
#7E2B8A
secondary
#68B45D
accent
#DC4C5E
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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