#7F2D9E#7F2D9E

#7F2D9E is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.9% C 0.181 H 315.1°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#7F2D9E
RGBrgb(127, 45, 158)
HSLhsl(284, 56%, 40%)
HSVhsv(284, 72%, 62%)
CMYKcmyk(19.6%, 71.5%, 0%, 38%)
CIE-LABlab(35.71, 52.39, -45.48)
CIE-LCHlch(35.71, 69.38, 319.04°)
OKLaboklab(46.88% 0.1284 -0.1281)
OKLCHoklch(46.88% 0.181 315.1)
XYZxyz(15.8613, 8.8580, 33.2154)
Luminance0.0886 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2D9E #4C9E2D
analogous
#472D9E #7F2D9E #9E2D84
triadic
#7F2D9E #9E7F2D #2D9E7F
tetradic
#7F2D9E #9E472D #4C9E2D #2D849E
square
#7F2D9E #9E472D #4C9E2D #2D849E
split-complementary
#7F2D9E #849E2D #2D9E47
monochromatic
#32123F #591F6E #7F2D9E #A340C9 #BA6FD6

Accessibility & contrast

On white

7.58
#7F2D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#7F2D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2D9E
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2D9E#FFFFFF#000000##FFFFFF
##7F2D9E1.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA1
Deuteranopia (green-blind)
#29569B
Tritanopia (blue-blind)
#7D4462
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7f2d9e;
/* rgb */ color: rgb(127, 45, 158);
/* oklch */ color: oklch(46.9% 0.181 315.1);
Tailwind
colors: {
  custom: {
    50: '#a86dbb',
    500: '#7f2d9e',
    950: '#000000',
  },
}
SCSS
$custom: #7f2d9e;
$custom-light: #a86dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2d9e",
  "rgb": {
    "r": 127,
    "g": 45,
    "b": 158
  },
  "hsl": {
    "h": 283.54,
    "s": 55.665,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46884,
    "c": 0.18133,
    "h": 315.1
  },
  "luminance": 0.08857
}

Semantic roles & 50–950 ramp

primary
#7F2D9E
secondary
#80BD69
accent
#DF4972
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7F2D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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