#7F2F82#7F2F82

#7F2F82 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.3% C 0.152 H 326.3°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#7F2F82
RGBrgb(127, 47, 130)
HSLhsl(298, 47%, 35%)
HSVhsv(298, 64%, 51%)
CMYKcmyk(2.3%, 63.8%, 0%, 49%)
CIE-LABlab(34.31, 45.93, -30.55)
CIE-LCHlch(34.31, 55.17, 326.37°)
OKLaboklab(45.33% 0.1266 -0.0845)
OKLCHoklch(45.33% 0.152 326.3)
XYZxyz(13.7979, 8.1576, 21.9626)
Luminance0.0816 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2F82 #32822F
analogous
#552F82 #7F2F82 #822F5C
triadic
#7F2F82 #827F2F #2F827F
tetradic
#7F2F82 #82552F #32822F #2F5C82
square
#7F2F82 #82552F #32822F #2F5C82
split-complementary
#7F2F82 #5C822F #2F8255
monochromatic
#270E28 #531F55 #7F2F82 #AB3FAF #C464C7

Accessibility & contrast

On white

7.98
#7F2F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7F2F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2F82
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2F82#FFFFFF#000000##FFFFFF
##7F2F821.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f2f82;
/* rgb */ color: rgb(127, 47, 130);
/* oklch */ color: oklch(45.3% 0.152 326.3);
Tailwind
colors: {
  custom: {
    50: '#a76da6',
    500: '#7f2f82',
    950: '#000000',
  },
}
SCSS
$custom: #7f2f82;
$custom-light: #a76da6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2f82",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 130
  },
  "hsl": {
    "h": 297.831,
    "s": 46.893,
    "l": 34.706
  },
  "oklch": {
    "l": 0.45326,
    "c": 0.15221,
    "h": 326.3
  },
  "luminance": 0.08157
}

Semantic roles & 50–950 ramp

primary
#7F2F82
secondary
#62AE5F
accent
#D75156
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7F2F82

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

Preview Lab → · Contrast checker → · Palette generator →

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