#7F2E8F#7F2E8F

#7F2E8F is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.0% C 0.166 H 320.6°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#7F2E8F
RGBrgb(127, 46, 143)
HSLhsl(290, 51%, 37%)
HSVhsv(290, 68%, 56%)
CMYKcmyk(11.2%, 67.8%, 0%, 43.9%)
CIE-LABlab(34.90, 48.90, -37.64)
CIE-LCHlch(34.90, 61.71, 322.42°)
OKLaboklab(46% 0.1281 -0.1051)
OKLCHoklch(46% 0.166 320.6)
XYZxyz(14.6867, 8.4499, 26.8387)
Luminance0.0845 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2E8F #3E8F2E
analogous
#4F2E8F #7F2E8F #8F2E6F
triadic
#7F2E8F #8F7F2E #2E8F7F
tetradic
#7F2E8F #8F4F2E #3E8F2E #2E6F8F
square
#7F2E8F #8F4F2E #3E8F2E #2E6F8F
split-complementary
#7F2E8F #6F8F2E #2E8F4F
monochromatic
#2D1032 #561F61 #7F2E8F #A83DBD #BE69CF

Accessibility & contrast

On white

7.81
#7F2E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#7F2E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2E8F
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2E8F#FFFFFF#000000##FFFFFF
##7F2E8F1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4C92
Deuteranopia (green-blind)
#37558D
Tritanopia (blue-blind)
#803F5A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f2e8f;
/* rgb */ color: rgb(127, 46, 143);
/* oklch */ color: oklch(46.0% 0.166 320.6);
Tailwind
colors: {
  custom: {
    50: '#a76db0',
    500: '#7f2e8f',
    950: '#000000',
  },
}
SCSS
$custom: #7f2e8f;
$custom-light: #a76db0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2e8f",
  "rgb": {
    "r": 127,
    "g": 46,
    "b": 143
  },
  "hsl": {
    "h": 290.103,
    "s": 51.323,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45999,
    "c": 0.16572,
    "h": 320.6
  },
  "luminance": 0.08449
}

Semantic roles & 50–950 ramp

primary
#7F2E8F
secondary
#71B663
accent
#DB4D64
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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