#7F2F84#7F2F84

#7F2F84 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.4% C 0.154 H 325.3°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#7F2F84
RGBrgb(127, 47, 132)
HSLhsl(296, 47%, 35%)
HSVhsv(296, 64%, 52%)
CMYKcmyk(3.8%, 64.4%, 0%, 48.2%)
CIE-LABlab(34.42, 46.31, -31.62)
CIE-LCHlch(34.42, 56.08, 325.68°)
OKLaboklab(45.44% 0.1267 -0.0876)
OKLCHoklch(45.44% 0.154 325.3)
XYZxyz(13.9335, 8.2118, 22.6765)
Luminance0.0821 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2F84 #34842F
analogous
#552F84 #7F2F84 #842F5E
triadic
#7F2F84 #847F2F #2F847F
tetradic
#7F2F84 #84552F #34842F #2F5E84
square
#7F2F84 #84552F #34842F #2F5E84
split-complementary
#7F2F84 #5E842F #2F8455
monochromatic
#280F2A #541F57 #7F2F84 #AA3FB1 #C265C8

Accessibility & contrast

On white

7.95
#7F2F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#7F2F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2F84
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2F84#FFFFFF#000000##FFFFFF
##7F2F841.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214B87
Deuteranopia (green-blind)
#3F5482
Tritanopia (blue-blind)
#823B55
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7f2f84;
/* rgb */ color: rgb(127, 47, 132);
/* oklch */ color: oklch(45.4% 0.154 325.3);
Tailwind
colors: {
  custom: {
    50: '#a76ea8',
    500: '#7f2f84',
    950: '#000000',
  },
}
SCSS
$custom: #7f2f84;
$custom-light: #a76ea8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2f84",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 132
  },
  "hsl": {
    "h": 296.471,
    "s": 47.486,
    "l": 35.098
  },
  "oklch": {
    "l": 0.45443,
    "c": 0.15405,
    "h": 325.3
  },
  "luminance": 0.08211
}

Semantic roles & 50–950 ramp

primary
#7F2F84
secondary
#64AF60
accent
#D75159
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7F2F84

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

Preview Lab → · Contrast checker → · Palette generator →

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