#7F2E82#7F2E82

#7F2E82 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.2% C 0.154 H 326.3°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#7F2E82
RGBrgb(127, 46, 130)
HSLhsl(298, 48%, 35%)
HSVhsv(298, 65%, 51%)
CMYKcmyk(2.3%, 64.6%, 0%, 49%)
CIE-LABlab(34.15, 46.38, -30.81)
CIE-LCHlch(34.15, 55.68, 326.41°)
OKLaboklab(45.21% 0.1279 -0.0853)
OKLCHoklch(45.21% 0.154 326.3)
XYZxyz(13.7584, 8.0786, 21.9494)
Luminance0.0808 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2E82 #31822E
analogous
#552E82 #7F2E82 #822E5B
triadic
#7F2E82 #827F2E #2E827F
tetradic
#7F2E82 #82552E #31822E #2E5B82
square
#7F2E82 #82552E #31822E #2E5B82
split-complementary
#7F2E82 #5B822E #2E8255
monochromatic
#270E28 #531E55 #7F2E82 #AB3EAF #C463C8

Accessibility & contrast

On white

8.03
#7F2E82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7F2E82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2E82
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2E82#FFFFFF#000000##FFFFFF
##7F2E821.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214A85
Deuteranopia (green-blind)
#405480
Tritanopia (blue-blind)
#823A54
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f2e82;
/* rgb */ color: rgb(127, 46, 130);
/* oklch */ color: oklch(45.2% 0.154 326.3);
Tailwind
colors: {
  custom: {
    50: '#a76da6',
    500: '#7f2e82',
    950: '#000000',
  },
}
SCSS
$custom: #7f2e82;
$custom-light: #a76da6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2e82",
  "rgb": {
    "r": 127,
    "g": 46,
    "b": 130
  },
  "hsl": {
    "h": 297.857,
    "s": 47.727,
    "l": 34.51
  },
  "oklch": {
    "l": 0.45208,
    "c": 0.15368,
    "h": 326.3
  },
  "luminance": 0.08078
}

Semantic roles & 50–950 ramp

primary
#7F2E82
secondary
#60AE5D
accent
#D75055
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7F2E82

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

Preview Lab → · Contrast checker → · Palette generator →

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