#7F2799#7F2799

#7F2799 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.9% C 0.184 H 317.3°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#7F2799
RGBrgb(127, 39, 153)
HSLhsl(286, 59%, 38%)
HSVhsv(286, 75%, 60%)
CMYKcmyk(17%, 74.5%, 0%, 40%)
CIE-LABlab(34.53, 53.77, -44.35)
CIE-LCHlch(34.53, 69.70, 320.48°)
OKLaboklab(45.93% 0.135 -0.1247)
OKLCHoklch(45.93% 0.184 317.3)
XYZxyz(15.2268, 8.2636, 30.9238)
Luminance0.0826 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2799 #419927
analogous
#462799 #7F2799 #99277A
triadic
#7F2799 #997F27 #27997F
tetradic
#7F2799 #994627 #419927 #277A99
square
#7F2799 #994627 #419927 #277A99
split-complementary
#7F2799 #7A9927 #279946
monochromatic
#2E0E37 #571B68 #7F2799 #A733CA #BD63D7

Accessibility & contrast

On white

7.92
#7F2799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7F2799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2799
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2799#FFFFFF#000000##FFFFFF
##7F27991.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.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: #7f2799;
/* rgb */ color: rgb(127, 39, 153);
/* oklch */ color: oklch(45.9% 0.184 317.3);
Tailwind
colors: {
  custom: {
    50: '#a86ab8',
    500: '#7f2799',
    950: '#000000',
  },
}
SCSS
$custom: #7f2799;
$custom-light: #a86ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2799",
  "rgb": {
    "r": 127,
    "g": 39,
    "b": 153
  },
  "hsl": {
    "h": 286.316,
    "s": 59.375,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45935,
    "c": 0.18382,
    "h": 317.3
  },
  "luminance": 0.08263
}

Semantic roles & 50–950 ramp

primary
#7F2799
secondary
#74BD5F
accent
#E34569
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2799

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

Preview Lab → · Contrast checker → · Palette generator →

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