#7F2999#7F2999

#7F2999 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.1% C 0.181 H 317.1°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#7F2999
RGBrgb(127, 41, 153)
HSLhsl(286, 58%, 38%)
HSVhsv(286, 73%, 60%)
CMYKcmyk(17%, 73.2%, 0%, 40%)
CIE-LABlab(34.80, 52.99, -43.91)
CIE-LCHlch(34.80, 68.82, 320.35°)
OKLaboklab(46.13% 0.133 -0.1234)
OKLCHoklch(46.13% 0.181 317.1)
XYZxyz(15.2943, 8.3985, 30.9463)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2999 #439929
analogous
#472999 #7F2999 #99297B
triadic
#7F2999 #997F29 #29997F
tetradic
#7F2999 #994729 #439929 #297B99
square
#7F2999 #994729 #439929 #297B99
split-complementary
#7F2999 #7B9929 #299947
monochromatic
#2F0F38 #571C69 #7F2999 #A736C9 #BC66D6

Accessibility & contrast

On white

7.84
#7F2999 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7F2999 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2999
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2999#FFFFFF#000000##FFFFFF
##7F29991.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9C
Deuteranopia (green-blind)
#2B5496
Tritanopia (blue-blind)
#7E405E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f2999;
/* rgb */ color: rgb(127, 41, 153);
/* oklch */ color: oklch(46.1% 0.181 317.1);
Tailwind
colors: {
  custom: {
    50: '#a86bb8',
    500: '#7f2999',
    950: '#000000',
  },
}
SCSS
$custom: #7f2999;
$custom-light: #a86bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2999",
  "rgb": {
    "r": 127,
    "g": 41,
    "b": 153
  },
  "hsl": {
    "h": 286.071,
    "s": 57.732,
    "l": 38.039
  },
  "oklch": {
    "l": 0.46129,
    "c": 0.18149,
    "h": 317.1
  },
  "luminance": 0.08398
}

Semantic roles & 50–950 ramp

primary
#7F2999
secondary
#77BC62
accent
#E1476B
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2999

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

Preview Lab → · Contrast checker → · Palette generator →

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