#7E2F8D#7E2F8D

#7E2F8D is a mid, vivid purple. Relative luminance 0.084; OKLCH L 45.8% C 0.162 H 320.9°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#7E2F8D
RGBrgb(126, 47, 141)
HSLhsl(290, 50%, 37%)
HSVhsv(290, 67%, 55%)
CMYKcmyk(10.6%, 66.7%, 0%, 44.7%)
CIE-LABlab(34.79, 47.81, -36.60)
CIE-LCHlch(34.79, 60.21, 322.56°)
OKLaboklab(45.85% 0.1257 -0.1021)
OKLCHoklch(45.85% 0.162 320.9)
XYZxyz(14.4279, 8.3925, 26.0541)
Luminance0.0839 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2F8D #3E8D2F
analogous
#4F2F8D #7E2F8D #8D2F6D
triadic
#7E2F8D #8D7E2F #2F8D7E
tetradic
#7E2F8D #8D4F2F #3E8D2F #2F6D8D
square
#7E2F8D #8D4F2F #3E8D2F #2F6D8D
split-complementary
#7E2F8D #6D8D2F #2F8D4F
monochromatic
#2C1031 #55205F #7E2F8D #A73EBB #BD69CD

Accessibility & contrast

On white

7.84
#7E2F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7E2F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2F8D
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2F8D#FFFFFF#000000##FFFFFF
##7E2F8D1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144C90
Deuteranopia (green-blind)
#39558B
Tritanopia (blue-blind)
#7F3F5A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e2f8d;
/* rgb */ color: rgb(126, 47, 141);
/* oklch */ color: oklch(45.8% 0.162 320.9);
Tailwind
colors: {
  custom: {
    50: '#a66eaf',
    500: '#7e2f8d',
    950: '#000000',
  },
}
SCSS
$custom: #7e2f8d;
$custom-light: #a66eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2f8d",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 141
  },
  "hsl": {
    "h": 290.426,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45845,
    "c": 0.16197,
    "h": 320.9
  },
  "luminance": 0.08392
}

Semantic roles & 50–950 ramp

primary
#7E2F8D
secondary
#70B464
accent
#DA4E65
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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