#7E2D8E#7E2D8E

#7E2D8E is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.7% C 0.166 H 320.6°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#7E2D8E
RGBrgb(126, 45, 142)
HSLhsl(290, 52%, 37%)
HSVhsv(290, 68%, 56%)
CMYKcmyk(11.3%, 68.3%, 0%, 44.3%)
CIE-LABlab(34.53, 48.89, -37.62)
CIE-LCHlch(34.53, 61.70, 322.42°)
OKLaboklab(45.68% 0.1281 -0.1051)
OKLCHoklch(45.68% 0.166 320.6)
XYZxyz(14.4245, 8.2661, 26.4217)
Luminance0.0827 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2D8E #3D8E2D
analogous
#4E2D8E #7E2D8E #8E2D6E
triadic
#7E2D8E #8E7E2D #2D8E7E
tetradic
#7E2D8E #8E4E2D #3D8E2D #2D6E8E
square
#7E2D8E #8E4E2D #3D8E2D #2D6E8E
split-complementary
#7E2D8E #6E8E2D #2D8E4E
monochromatic
#2C1031 #551E60 #7E2D8E #A73CBC #BE67CF

Accessibility & contrast

On white

7.92
#7E2D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2D8E
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2D8E#FFFFFF#000000##FFFFFF
##7E2D8E1.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4C91
Deuteranopia (green-blind)
#37548C
Tritanopia (blue-blind)
#7F3E5A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e2d8e;
/* rgb */ color: rgb(126, 45, 142);
/* oklch */ color: oklch(45.7% 0.166 320.6);
Tailwind
colors: {
  custom: {
    50: '#a66daf',
    500: '#7e2d8e',
    950: '#000000',
  },
}
SCSS
$custom: #7e2d8e;
$custom-light: #a66daf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2d8e",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 142
  },
  "hsl": {
    "h": 290.103,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.4568,
    "c": 0.16567,
    "h": 320.6
  },
  "luminance": 0.08265
}

Semantic roles & 50–950 ramp

primary
#7E2D8E
secondary
#6FB561
accent
#DB4C64
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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