#7E2D8B#7E2D8B

#7E2D8B is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.5% C 0.163 H 321.9°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#7E2D8B
RGBrgb(126, 45, 139)
HSLhsl(292, 51%, 36%)
HSVhsv(292, 68%, 55%)
CMYKcmyk(9.4%, 67.6%, 0%, 45.5%)
CIE-LABlab(34.35, 48.30, -36.07)
CIE-LCHlch(34.35, 60.28, 323.25°)
OKLaboklab(45.49% 0.1281 -0.1006)
OKLCHoklch(45.49% 0.163 321.9)
XYZxyz(14.2023, 8.1772, 25.2514)
Luminance0.0818 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2D8B #3A8B2D
analogous
#4F2D8B #7E2D8B #8B2D69
triadic
#7E2D8B #8B7E2D #2D8B7E
tetradic
#7E2D8B #8B4F2D #3A8B2D #2D698B
square
#7E2D8B #8B4F2D #3A8B2D #2D698B
split-complementary
#7E2D8B #698B2D #2D8B4F
monochromatic
#2A0F2F #541E5D #7E2D8B #A83CB9 #BF65CD

Accessibility & contrast

On white

7.97
#7E2D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#7E2D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2D8B
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2D8B#FFFFFF#000000##FFFFFF
##7E2D8B1.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134B8E
Deuteranopia (green-blind)
#395489
Tritanopia (blue-blind)
#7F3D58
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e2d8b;
/* rgb */ color: rgb(126, 45, 139);
/* oklch */ color: oklch(45.5% 0.163 321.9);
Tailwind
colors: {
  custom: {
    50: '#a66dad',
    500: '#7e2d8b',
    950: '#000000',
  },
}
SCSS
$custom: #7e2d8b;
$custom-light: #a66dad;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2d8b",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 139
  },
  "hsl": {
    "h": 291.702,
    "s": 51.087,
    "l": 36.078
  },
  "oklch": {
    "l": 0.45491,
    "c": 0.16285,
    "h": 321.9
  },
  "luminance": 0.08176
}

Semantic roles & 50–950 ramp

primary
#7E2D8B
secondary
#6CB460
accent
#DB4D61
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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