#7F2F89#7F2F89

#7F2F89 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 45.7% C 0.159 H 323.1°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#7F2F89
RGBrgb(127, 47, 137)
HSLhsl(293, 49%, 36%)
HSVhsv(293, 66%, 54%)
CMYKcmyk(7.3%, 65.7%, 0%, 46.3%)
CIE-LABlab(34.71, 47.27, -34.26)
CIE-LCHlch(34.71, 58.38, 324.07°)
OKLaboklab(45.74% 0.1269 -0.0953)
OKLCHoklch(45.74% 0.159 323.1)
XYZxyz(14.2838, 8.3520, 24.5218)
Luminance0.0835 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2F89 #39892F
analogous
#522F89 #7F2F89 #892F66
triadic
#7F2F89 #897F2F #2F897F
tetradic
#7F2F89 #89522F #39892F #2F6689
square
#7F2F89 #89522F #39892F #2F6689
split-complementary
#7F2F89 #66892F #2F8952
monochromatic
#2B102E #551F5B #7F2F89 #A93FB7 #C067CB

Accessibility & contrast

On white

7.86
#7F2F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7F2F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2F89
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2F89#FFFFFF#000000##FFFFFF
##7F2F891.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4C8C
Deuteranopia (green-blind)
#3C5587
Tritanopia (blue-blind)
#813D58
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f2f89;
/* rgb */ color: rgb(127, 47, 137);
/* oklch */ color: oklch(45.7% 0.159 323.1);
Tailwind
colors: {
  custom: {
    50: '#a76eac',
    500: '#7f2f89',
    950: '#000000',
  },
}
SCSS
$custom: #7f2f89;
$custom-light: #a76eac;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2f89",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 137
  },
  "hsl": {
    "h": 293.333,
    "s": 48.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.45741,
    "c": 0.15869,
    "h": 323.1
  },
  "luminance": 0.08351
}

Semantic roles & 50–950 ramp

primary
#7F2F89
secondary
#6BB262
accent
#D84F5F
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2F89

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

Preview Lab → · Contrast checker → · Palette generator →

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