#7E2F8E#7E2F8E

#7E2F8E is a mid, vivid purple. Relative luminance 0.084; OKLCH L 45.9% C 0.163 H 320.5°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#7E2F8E
RGBrgb(126, 47, 142)
HSLhsl(290, 50%, 37%)
HSVhsv(290, 67%, 56%)
CMYKcmyk(11.3%, 66.9%, 0%, 44.3%)
CIE-LABlab(34.85, 48.01, -37.12)
CIE-LCHlch(34.85, 60.69, 322.29°)
OKLaboklab(45.91% 0.1257 -0.1037)
OKLCHoklch(45.91% 0.163 320.5)
XYZxyz(14.5026, 8.4224, 26.4477)
Luminance0.0842 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2F8E #3F8E2F
analogous
#4F2F8E #7E2F8E #8E2F6F
triadic
#7E2F8E #8E7E2F #2F8E7E
tetradic
#7E2F8E #8E4F2F #3F8E2F #2F6F8E
square
#7E2F8E #8E4F2F #3F8E2F #2F6F8E
split-complementary
#7E2F8E #6F8E2F #2F8E4F
monochromatic
#2C1132 #552060 #7E2F8E #A73EBC #BD6ACE

Accessibility & contrast

On white

7.82
#7E2F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2F8E
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2F8E#FFFFFF#000000##FFFFFF
##7E2F8E1.007.822.687.82
#FFFFFF7.821.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124C91
Deuteranopia (green-blind)
#38558C
Tritanopia (blue-blind)
#7F3F5A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e2f8e;
/* rgb */ color: rgb(126, 47, 142);
/* oklch */ color: oklch(45.9% 0.163 320.5);
Tailwind
colors: {
  custom: {
    50: '#a66eaf',
    500: '#7e2f8e',
    950: '#000000',
  },
}
SCSS
$custom: #7e2f8e;
$custom-light: #a66eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2f8e",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 142
  },
  "hsl": {
    "h": 289.895,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45908,
    "c": 0.16292,
    "h": 320.5
  },
  "luminance": 0.08422
}

Semantic roles & 50–950 ramp

primary
#7E2F8E
secondary
#72B564
accent
#DA4E66
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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