#7E2D8D#7E2D8D

#7E2D8D is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.6% C 0.165 H 321.0°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#7E2D8D
RGBrgb(126, 45, 141)
HSLhsl(291, 52%, 36%)
HSVhsv(291, 68%, 55%)
CMYKcmyk(10.6%, 68.1%, 0%, 44.7%)
CIE-LABlab(34.47, 48.70, -37.11)
CIE-LCHlch(34.47, 61.22, 322.69°)
OKLaboklab(45.62% 0.1281 -0.1036)
OKLCHoklch(45.62% 0.165 321)
XYZxyz(14.3497, 8.2362, 26.0280)
Luminance0.0824 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2D8D #3C8D2D
analogous
#4E2D8D #7E2D8D #8D2D6C
triadic
#7E2D8D #8D7E2D #2D8D7E
tetradic
#7E2D8D #8D4E2D #3C8D2D #2D6C8D
square
#7E2D8D #8D4E2D #3C8D2D #2D6C8D
split-complementary
#7E2D8D #6C8D2D #2D8D4E
monochromatic
#2B0F30 #551E5F #7E2D8D #A73CBB #BE66CE

Accessibility & contrast

On white

7.93
#7E2D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7E2D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2D8D
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2D8D#FFFFFF#000000##FFFFFF
##7E2D8D1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4B90
Deuteranopia (green-blind)
#37548B
Tritanopia (blue-blind)
#7F3D59
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e2d8d;
/* rgb */ color: rgb(126, 45, 141);
/* oklch */ color: oklch(45.6% 0.165 321.0);
Tailwind
colors: {
  custom: {
    50: '#a66daf',
    500: '#7e2d8d',
    950: '#000000',
  },
}
SCSS
$custom: #7e2d8d;
$custom-light: #a66daf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2d8d",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 141
  },
  "hsl": {
    "h": 290.625,
    "s": 51.613,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45617,
    "c": 0.16473,
    "h": 321
  },
  "luminance": 0.08235
}

Semantic roles & 50–950 ramp

primary
#7E2D8D
secondary
#6EB561
accent
#DB4D63
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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