#7E2B8D#7E2B8D

#7E2B8D is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.4% C 0.167 H 321.1°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#7E2B8D
RGBrgb(126, 43, 141)
HSLhsl(291, 53%, 36%)
HSVhsv(291, 70%, 55%)
CMYKcmyk(10.6%, 69.5%, 0%, 44.7%)
CIE-LABlab(34.16, 49.55, -37.60)
CIE-LCHlch(34.16, 62.20, 322.81°)
OKLaboklab(45.4% 0.1304 -0.105)
OKLCHoklch(45.4% 0.167 321.1)
XYZxyz(14.2752, 8.0872, 26.0032)
Luminance0.0809 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2B8D #3A8D2B
analogous
#4D2B8D #7E2B8D #8D2B6B
triadic
#7E2B8D #8D7E2B #2B8D7E
tetradic
#7E2B8D #8D4D2B #3A8D2B #2B6B8D
square
#7E2B8D #8D4D2B #3A8D2B #2B6B8D
split-complementary
#7E2B8D #6B8D2B #2B8D4D
monochromatic
#2A0E2F #541D5E #7E2B8D #A839BC #BF63CF

Accessibility & contrast

On white

8.02
#7E2B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7E2B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2B8D
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2B8D#FFFFFF#000000##FFFFFF
##7E2B8D1.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e2b8d;
/* rgb */ color: rgb(126, 43, 141);
/* oklch */ color: oklch(45.4% 0.167 321.1);
Tailwind
colors: {
  custom: {
    50: '#a66caf',
    500: '#7e2b8d',
    950: '#000000',
  },
}
SCSS
$custom: #7e2b8d;
$custom-light: #a66caf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2b8d",
  "rgb": {
    "r": 126,
    "g": 43,
    "b": 141
  },
  "hsl": {
    "h": 290.816,
    "s": 53.261,
    "l": 36.078
  },
  "oklch": {
    "l": 0.45397,
    "c": 0.16742,
    "h": 321.1
  },
  "luminance": 0.08086
}

Semantic roles & 50–950 ramp

primary
#7E2B8D
secondary
#6CB65E
accent
#DD4B61
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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