#7F2D94#7F2D94

#7F2D94 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.2% C 0.172 H 318.7°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#7F2D94
RGBrgb(127, 45, 148)
HSLhsl(288, 53%, 38%)
HSVhsv(288, 70%, 58%)
CMYKcmyk(14.2%, 69.6%, 0%, 42%)
CIE-LABlab(35.06, 50.33, -40.45)
CIE-LCHlch(35.06, 64.57, 321.22°)
OKLaboklab(46.21% 0.1291 -0.1133)
OKLCHoklch(46.21% 0.172 318.7)
XYZxyz(15.0354, 8.5276, 28.8652)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2D94 #42942D
analogous
#4B2D94 #7F2D94 #942D75
triadic
#7F2D94 #947F2D #2D947F
tetradic
#7F2D94 #944B2D #42942D #2D7594
square
#7F2D94 #944B2D #42942D #2D7594
split-complementary
#7F2D94 #75942D #2D944B
monochromatic
#2E1036 #571F65 #7F2D94 #A73BC3 #BC6AD2

Accessibility & contrast

On white

7.76
#7F2D94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7F2D94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2D94
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2D94#FFFFFF#000000##FFFFFF
##7F2D941.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D97
Deuteranopia (green-blind)
#335592
Tritanopia (blue-blind)
#7F405D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f2d94;
/* rgb */ color: rgb(127, 45, 148);
/* oklch */ color: oklch(46.2% 0.172 318.7);
Tailwind
colors: {
  custom: {
    50: '#a76db4',
    500: '#7f2d94',
    950: '#000000',
  },
}
SCSS
$custom: #7f2d94;
$custom-light: #a76db4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2d94",
  "rgb": {
    "r": 127,
    "g": 45,
    "b": 148
  },
  "hsl": {
    "h": 287.767,
    "s": 53.368,
    "l": 37.843
  },
  "oklch": {
    "l": 0.4621,
    "c": 0.17179,
    "h": 318.7
  },
  "luminance": 0.08527
}

Semantic roles & 50–950 ramp

primary
#7F2D94
secondary
#75B864
accent
#DD4B69
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2D94

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

Preview Lab → · Contrast checker → · Palette generator →

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