#7F2E8D#7F2E8D

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

Color values

HEX#7F2E8D
RGBrgb(127, 46, 141)
HSLhsl(291, 51%, 37%)
HSVhsv(291, 67%, 55%)
CMYKcmyk(9.9%, 67.4%, 0%, 44.7%)
CIE-LABlab(34.78, 48.50, -36.60)
CIE-LCHlch(34.78, 60.76, 322.96°)
OKLaboklab(45.87% 0.1281 -0.1021)
OKLCHoklch(45.87% 0.164 321.4)
XYZxyz(14.5366, 8.3899, 26.0479)
Luminance0.0839 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2E8D #3C8D2E
analogous
#502E8D #7F2E8D #8D2E6C
triadic
#7F2E8D #8D7F2E #2E8D7F
tetradic
#7F2E8D #8D502E #3C8D2E #2E6C8D
square
#7F2E8D #8D502E #3C8D2E #2E6C8D
split-complementary
#7F2E8D #6C8D2E #2E8D50
monochromatic
#2C1031 #551F5F #7F2E8D #A93DBB #BF68CE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F2E8D#FFFFFF#000000##FFFFFF
##7F2E8D1.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)
#134C90
Deuteranopia (green-blind)
#39558B
Tritanopia (blue-blind)
#803E59
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f2e8d;
/* rgb */ color: rgb(127, 46, 141);
/* oklch */ color: oklch(45.9% 0.164 321.4);
Tailwind
colors: {
  custom: {
    50: '#a76daf',
    500: '#7f2e8d',
    950: '#000000',
  },
}
SCSS
$custom: #7f2e8d;
$custom-light: #a76daf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2e8d",
  "rgb": {
    "r": 127,
    "g": 46,
    "b": 141
  },
  "hsl": {
    "h": 291.158,
    "s": 50.802,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45873,
    "c": 0.16384,
    "h": 321.4
  },
  "luminance": 0.08389
}

Semantic roles & 50–950 ramp

primary
#7F2E8D
secondary
#6EB562
accent
#DA4E62
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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