#7F2D91#7F2D91

#7F2D91 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.0% C 0.169 H 319.9°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#7F2D91
RGBrgb(127, 45, 145)
HSLhsl(289, 53%, 37%)
HSVhsv(289, 69%, 57%)
CMYKcmyk(12.4%, 69%, 0%, 43.1%)
CIE-LABlab(34.87, 49.73, -38.91)
CIE-LCHlch(34.87, 63.15, 321.96°)
OKLaboklab(46.02% 0.1292 -0.1088)
OKLCHoklch(46.02% 0.169 319.9)
XYZxyz(14.8010, 8.4338, 27.6308)
Luminance0.0843 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2D91 #3F912D
analogous
#4D2D91 #7F2D91 #912D71
triadic
#7F2D91 #917F2D #2D917F
tetradic
#7F2D91 #914D2D #3F912D #2D7191
square
#7F2D91 #914D2D #3F912D #2D7191
split-complementary
#7F2D91 #71912D #2D914D
monochromatic
#2D1034 #561F62 #7F2D91 #A83BC0 #BD68D0

Accessibility & contrast

On white

7.82
#7F2D91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#7F2D91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2D91
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2D91#FFFFFF#000000##FFFFFF
##7F2D911.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#064C94
Deuteranopia (green-blind)
#35558F
Tritanopia (blue-blind)
#7F3F5B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f2d91;
/* rgb */ color: rgb(127, 45, 145);
/* oklch */ color: oklch(46.0% 0.169 319.9);
Tailwind
colors: {
  custom: {
    50: '#a76db2',
    500: '#7f2d91',
    950: '#000000',
  },
}
SCSS
$custom: #7f2d91;
$custom-light: #a76db2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2d91",
  "rgb": {
    "r": 127,
    "g": 45,
    "b": 145
  },
  "hsl": {
    "h": 289.2,
    "s": 52.632,
    "l": 37.255
  },
  "oklch": {
    "l": 0.46015,
    "c": 0.16896,
    "h": 319.9
  },
  "luminance": 0.08433
}

Semantic roles & 50–950 ramp

primary
#7F2D91
secondary
#72B763
accent
#DC4C66
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2D91

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

Preview Lab → · Contrast checker → · Palette generator →

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