#7F2989#7F2989

#7F2989 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.1% C 0.167 H 323.4°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#7F2989
RGBrgb(127, 41, 137)
HSLhsl(294, 54%, 35%)
HSVhsv(294, 70%, 54%)
CMYKcmyk(7.3%, 70.1%, 0%, 46.3%)
CIE-LABlab(33.78, 49.85, -35.72)
CIE-LCHlch(33.78, 61.33, 324.37°)
OKLaboklab(45.08% 0.1339 -0.0995)
OKLCHoklch(45.08% 0.167 323.4)
XYZxyz(14.0603, 7.9049, 24.4473)
Luminance0.0790 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2989 #338929
analogous
#4F2989 #7F2989 #892963
triadic
#7F2989 #897F29 #29897F
tetradic
#7F2989 #894F29 #338929 #296389
square
#7F2989 #894F29 #338929 #296389
split-complementary
#7F2989 #638929 #29894F
monochromatic
#280D2B #531B5A #7F2989 #AB37B8 #C35ECF

Accessibility & contrast

On white

8.14
#7F2989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7F2989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2989
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2989#FFFFFF#000000##FFFFFF
##7F29891.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E498C
Deuteranopia (green-blind)
#385387
Tritanopia (blue-blind)
#813956
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f2989;
/* rgb */ color: rgb(127, 41, 137);
/* oklch */ color: oklch(45.1% 0.167 323.4);
Tailwind
colors: {
  custom: {
    50: '#a76bac',
    500: '#7f2989',
    950: '#000000',
  },
}
SCSS
$custom: #7f2989;
$custom-light: #a76bac;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2989",
  "rgb": {
    "r": 127,
    "g": 41,
    "b": 137
  },
  "hsl": {
    "h": 293.75,
    "s": 53.933,
    "l": 34.902
  },
  "oklch": {
    "l": 0.45077,
    "c": 0.16686,
    "h": 323.4
  },
  "luminance": 0.07904
}

Semantic roles & 50–950 ramp

primary
#7F2989
secondary
#63B45A
accent
#DD4A5A
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2989

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

Preview Lab → · Contrast checker → · Palette generator →

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