#7F2F80#7F2F80

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

Color values

HEX#7F2F80
RGBrgb(127, 47, 128)
HSLhsl(299, 46%, 34%)
HSVhsv(299, 63%, 50%)
CMYKcmyk(0.8%, 63.3%, 0%, 49.8%)
CIE-LABlab(34.20, 45.56, -29.48)
CIE-LCHlch(34.20, 54.27, 327.09°)
OKLaboklab(45.21% 0.1264 -0.0814)
OKLCHoklch(45.21% 0.15 327.2)
XYZxyz(13.6650, 8.1044, 21.2625)
Luminance0.0810 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2F80 #30802F
analogous
#572F80 #7F2F80 #802F59
triadic
#7F2F80 #807F2F #2F807F
tetradic
#7F2F80 #80572F #30802F #2F5980
square
#7F2F80 #80572F #30802F #2F5980
split-complementary
#7F2F80 #59802F #2F8057
monochromatic
#260E26 #531F53 #7F2F80 #AB3FAD #C563C6

Accessibility & contrast

On white

8.01
#7F2F80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2F80
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2F80#FFFFFF#000000##FFFFFF
##7F2F801.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244A82
Deuteranopia (green-blind)
#41547E
Tritanopia (blue-blind)
#833A53
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f2f80;
/* rgb */ color: rgb(127, 47, 128);
/* oklch */ color: oklch(45.2% 0.150 327.2);
Tailwind
colors: {
  custom: {
    50: '#a76da5',
    500: '#7f2f80',
    950: '#000000',
  },
}
SCSS
$custom: #7f2f80;
$custom-light: #a76da5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2f80",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 128
  },
  "hsl": {
    "h": 299.259,
    "s": 46.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.45211,
    "c": 0.15039,
    "h": 327.2
  },
  "luminance": 0.08104
}

Semantic roles & 50–950 ramp

primary
#7F2F80
secondary
#5FAD5E
accent
#D65253
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7F2F80

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

Preview Lab → · Contrast checker → · Palette generator →

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