#7F2889#7F2889

#7F2889 is a dark, vivid purple. Relative luminance 0.078; OKLCH L 45.0% C 0.168 H 323.4°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#7F2889
RGBrgb(127, 40, 137)
HSLhsl(294, 55%, 35%)
HSVhsv(294, 71%, 54%)
CMYKcmyk(7.3%, 70.8%, 0%, 46.3%)
CIE-LABlab(33.64, 50.26, -35.95)
CIE-LCHlch(33.64, 61.79, 324.42°)
OKLaboklab(44.97% 0.1351 -0.1002)
OKLCHoklch(44.97% 0.168 323.4)
XYZxyz(14.0261, 7.8366, 24.4359)
Luminance0.0784 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2889 #328928
analogous
#4E2889 #7F2889 #892863
triadic
#7F2889 #897F28 #28897F
tetradic
#7F2889 #894E28 #328928 #286389
square
#7F2889 #894E28 #328928 #286389
split-complementary
#7F2889 #638928 #28894E
monochromatic
#270C2A #531A5A #7F2889 #AB36B8 #C45CCF

Accessibility & contrast

On white

8.18
#7F2889 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7F2889 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2889
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2889#FFFFFF#000000##FFFFFF
##7F28891.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f2889;
/* rgb */ color: rgb(127, 40, 137);
/* oklch */ color: oklch(45.0% 0.168 323.4);
Tailwind
colors: {
  custom: {
    50: '#a76aac',
    500: '#7f2889',
    950: '#000000',
  },
}
SCSS
$custom: #7f2889;
$custom-light: #a76aac;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2889",
  "rgb": {
    "r": 127,
    "g": 40,
    "b": 137
  },
  "hsl": {
    "h": 293.814,
    "s": 54.802,
    "l": 34.706
  },
  "oklch": {
    "l": 0.44974,
    "c": 0.16814,
    "h": 323.4
  },
  "luminance": 0.07836
}

Semantic roles & 50–950 ramp

primary
#7F2889
secondary
#62B558
accent
#DE4A59
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2889

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

Preview Lab → · Contrast checker → · Palette generator →

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