#7F2992#7F2992

#7F2992 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.7% C 0.175 H 319.8°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#7F2992
RGBrgb(127, 41, 146)
HSLhsl(289, 56%, 37%)
HSVhsv(289, 72%, 57%)
CMYKcmyk(13%, 71.9%, 0%, 42.7%)
CIE-LABlab(34.34, 51.60, -40.37)
CIE-LCHlch(34.34, 65.51, 321.96°)
OKLaboklab(45.66% 0.1336 -0.1131)
OKLCHoklch(45.66% 0.175 319.8)
XYZxyz(14.7330, 8.1739, 27.9902)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2992 #3C9229
analogous
#4B2992 #7F2992 #922971
triadic
#7F2992 #927F29 #29927F
tetradic
#7F2992 #924B29 #3C9229 #297192
square
#7F2992 #924B29 #3C9229 #297192
split-complementary
#7F2992 #719229 #29924B
monochromatic
#2C0E32 #551C62 #7F2992 #A936C2 #BF62D3

Accessibility & contrast

On white

7.97
#7F2992 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7F2992 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2992
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2992#FFFFFF#000000##FFFFFF
##7F29921.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B95
Deuteranopia (green-blind)
#325490
Tritanopia (blue-blind)
#7F3D5B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7f2992;
/* rgb */ color: rgb(127, 41, 146);
/* oklch */ color: oklch(45.7% 0.175 319.8);
Tailwind
colors: {
  custom: {
    50: '#a76bb2',
    500: '#7f2992',
    950: '#000000',
  },
}
SCSS
$custom: #7f2992;
$custom-light: #a76bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2992",
  "rgb": {
    "r": 127,
    "g": 41,
    "b": 146
  },
  "hsl": {
    "h": 289.143,
    "s": 56.15,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45657,
    "c": 0.17503,
    "h": 319.8
  },
  "luminance": 0.08173
}

Semantic roles & 50–950 ramp

primary
#7F2992
secondary
#6EB95E
accent
#DF4864
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2992

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

Preview Lab → · Contrast checker → · Palette generator →

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