#7F2E8E#7F2E8E

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

Color values

HEX#7F2E8E
RGBrgb(127, 46, 142)
HSLhsl(291, 51%, 37%)
HSVhsv(291, 68%, 56%)
CMYKcmyk(10.6%, 67.6%, 0%, 44.3%)
CIE-LABlab(34.84, 48.70, -37.12)
CIE-LCHlch(34.84, 61.23, 322.68°)
OKLaboklab(45.94% 0.1281 -0.1036)
OKLCHoklch(45.94% 0.165 321)
XYZxyz(14.6113, 8.4198, 26.4415)
Luminance0.0842 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2E8E #3D8E2E
analogous
#4F2E8E #7F2E8E #8E2E6D
triadic
#7F2E8E #8E7F2E #2E8E7F
tetradic
#7F2E8E #8E4F2E #3D8E2E #2E6D8E
square
#7F2E8E #8E4F2E #3D8E2E #2E6D8E
split-complementary
#7F2E8E #6D8E2E #2E8E4F
monochromatic
#2C1032 #561F60 #7F2E8E #A83DBC #BE68CE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F2E8E#FFFFFF#000000##FFFFFF
##7F2E8E1.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)
#114C91
Deuteranopia (green-blind)
#38558C
Tritanopia (blue-blind)
#803E5A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f2e8e;
/* rgb */ color: rgb(127, 46, 142);
/* oklch */ color: oklch(45.9% 0.165 321.0);
Tailwind
colors: {
  custom: {
    50: '#a76daf',
    500: '#7f2e8e',
    950: '#000000',
  },
}
SCSS
$custom: #7f2e8e;
$custom-light: #a76daf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2e8e",
  "rgb": {
    "r": 127,
    "g": 46,
    "b": 142
  },
  "hsl": {
    "h": 290.625,
    "s": 51.064,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45936,
    "c": 0.16479,
    "h": 321
  },
  "luminance": 0.08419
}

Semantic roles & 50–950 ramp

primary
#7F2E8E
secondary
#70B563
accent
#DB4D63
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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