#7F2899#7F2899

#7F2899 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.0% C 0.183 H 317.2°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#7F2899
RGBrgb(127, 40, 153)
HSLhsl(286, 59%, 38%)
HSVhsv(286, 74%, 60%)
CMYKcmyk(17%, 73.9%, 0%, 40%)
CIE-LABlab(34.66, 53.39, -44.13)
CIE-LCHlch(34.66, 69.27, 320.42°)
OKLaboklab(46.03% 0.134 -0.1241)
OKLCHoklch(46.03% 0.183 317.2)
XYZxyz(15.2601, 8.3302, 30.9349)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2899 #429928
analogous
#472899 #7F2899 #99287A
triadic
#7F2899 #997F28 #28997F
tetradic
#7F2899 #994728 #429928 #287A99
square
#7F2899 #994728 #429928 #287A99
split-complementary
#7F2899 #7A9928 #289947
monochromatic
#2E0F38 #571B68 #7F2899 #A735CA #BC65D7

Accessibility & contrast

On white

7.88
#7F2899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2899
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2899#FFFFFF#000000##FFFFFF
##7F28991.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9C
Deuteranopia (green-blind)
#2A5496
Tritanopia (blue-blind)
#7E3F5E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7f2899;
/* rgb */ color: rgb(127, 40, 153);
/* oklch */ color: oklch(46.0% 0.183 317.2);
Tailwind
colors: {
  custom: {
    50: '#a86bb8',
    500: '#7f2899',
    950: '#000000',
  },
}
SCSS
$custom: #7f2899;
$custom-light: #a86bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2899",
  "rgb": {
    "r": 127,
    "g": 40,
    "b": 153
  },
  "hsl": {
    "h": 286.195,
    "s": 58.549,
    "l": 37.843
  },
  "oklch": {
    "l": 0.46031,
    "c": 0.18266,
    "h": 317.2
  },
  "luminance": 0.0833
}

Semantic roles & 50–950 ramp

primary
#7F2899
secondary
#75BD60
accent
#E2466A
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2899

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

Preview Lab → · Contrast checker → · Palette generator →

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