#7F2E8A#7F2E8A

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

Color values

HEX#7F2E8A
RGBrgb(127, 46, 138)
HSLhsl(293, 50%, 36%)
HSVhsv(293, 67%, 54%)
CMYKcmyk(8%, 66.7%, 0%, 45.9%)
CIE-LABlab(34.60, 47.91, -35.04)
CIE-LCHlch(34.60, 59.36, 323.82°)
OKLaboklab(45.69% 0.1281 -0.0975)
OKLCHoklch(45.69% 0.161 322.7)
XYZxyz(14.3164, 8.3018, 24.8881)
Luminance0.0830 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2E8A #398A2E
analogous
#512E8A #7F2E8A #8A2E67
triadic
#7F2E8A #8A7F2E #2E8A7F
tetradic
#7F2E8A #8A512E #398A2E #2E678A
square
#7F2E8A #8A512E #398A2E #2E678A
split-complementary
#7F2E8A #678A2E #2E8A51
monochromatic
#2B0F2E #551F5C #7F2E8A #A93DB8 #C066CC

Accessibility & contrast

On white

7.89
#7F2E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7F2E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2E8A
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2E8A#FFFFFF#000000##FFFFFF
##7F2E8A1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184B8D
Deuteranopia (green-blind)
#3B5588
Tritanopia (blue-blind)
#813D58
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7f2e8a;
/* rgb */ color: rgb(127, 46, 138);
/* oklch */ color: oklch(45.7% 0.161 322.7);
Tailwind
colors: {
  custom: {
    50: '#a76dac',
    500: '#7f2e8a',
    950: '#000000',
  },
}
SCSS
$custom: #7f2e8a;
$custom-light: #a76dac;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2e8a",
  "rgb": {
    "r": 127,
    "g": 46,
    "b": 138
  },
  "hsl": {
    "h": 292.826,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.45687,
    "c": 0.16103,
    "h": 322.7
  },
  "luminance": 0.08301
}

Semantic roles & 50–950 ramp

primary
#7F2E8A
secondary
#6BB361
accent
#DA4E5F
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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