#7F2D96#7F2D96

#7F2D96 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.3% C 0.174 H 318.0°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#7F2D96
RGBrgb(127, 45, 150)
HSLhsl(287, 54%, 38%)
HSVhsv(287, 70%, 59%)
CMYKcmyk(15.3%, 70%, 0%, 41.2%)
CIE-LABlab(35.19, 50.74, -41.46)
CIE-LCHlch(35.19, 65.53, 320.74°)
OKLaboklab(46.34% 0.129 -0.1163)
OKLCHoklch(46.34% 0.174 318)
XYZxyz(15.1950, 8.5915, 29.7062)
Luminance0.0859 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2D96 #44962D
analogous
#4A2D96 #7F2D96 #962D78
triadic
#7F2D96 #967F2D #2D967F
tetradic
#7F2D96 #964A2D #44962D #2D7896
square
#7F2D96 #964A2D #44962D #2D7896
split-complementary
#7F2D96 #78962D #2D964A
monochromatic
#2F1138 #571F67 #7F2D96 #A63CC4 #BC6BD3

Accessibility & contrast

On white

7.73
#7F2D96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7F2D96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2D96
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2D96#FFFFFF#000000##FFFFFF
##7F2D961.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D99
Deuteranopia (green-blind)
#315594
Tritanopia (blue-blind)
#7E415E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7f2d96;
/* rgb */ color: rgb(127, 45, 150);
/* oklch */ color: oklch(46.3% 0.174 318.0);
Tailwind
colors: {
  custom: {
    50: '#a76db5',
    500: '#7f2d96',
    950: '#000000',
  },
}
SCSS
$custom: #7f2d96;
$custom-light: #a76db5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2d96",
  "rgb": {
    "r": 127,
    "g": 45,
    "b": 150
  },
  "hsl": {
    "h": 286.857,
    "s": 53.846,
    "l": 38.235
  },
  "oklch": {
    "l": 0.46342,
    "c": 0.17368,
    "h": 318
  },
  "luminance": 0.08591
}

Semantic roles & 50–950 ramp

primary
#7F2D96
secondary
#78B965
accent
#DD4B6B
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2D96

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

Preview Lab → · Contrast checker → · Palette generator →

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