#7F2D98#7F2D98

#7F2D98 is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.5% C 0.176 H 317.2°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#7F2D98
RGBrgb(127, 45, 152)
HSLhsl(286, 54%, 39%)
HSVhsv(286, 70%, 60%)
CMYKcmyk(16.4%, 70.4%, 0%, 40.4%)
CIE-LABlab(35.31, 51.15, -42.48)
CIE-LCHlch(35.31, 66.49, 320.29°)
OKLaboklab(46.48% 0.1289 -0.1193)
OKLCHoklch(46.48% 0.176 317.2)
XYZxyz(15.3575, 8.6564, 30.5616)
Luminance0.0866 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2D98 #46982D
analogous
#492D98 #7F2D98 #982D7B
triadic
#7F2D98 #987F2D #2D987F
tetradic
#7F2D98 #98492D #46982D #2D7B98
square
#7F2D98 #98492D #46982D #2D7B98
split-complementary
#7F2D98 #7B982D #2D9849
monochromatic
#30113A #581F69 #7F2D98 #A63DC5 #BB6CD3

Accessibility & contrast

On white

7.69
#7F2D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#7F2D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2D98
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2D98#FFFFFF#000000##FFFFFF
##7F2D981.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9B
Deuteranopia (green-blind)
#2F5696
Tritanopia (blue-blind)
#7E425F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7f2d98;
/* rgb */ color: rgb(127, 45, 152);
/* oklch */ color: oklch(46.5% 0.176 317.2);
Tailwind
colors: {
  custom: {
    50: '#a76db7',
    500: '#7f2d98',
    950: '#000000',
  },
}
SCSS
$custom: #7f2d98;
$custom-light: #a76db7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2d98",
  "rgb": {
    "r": 127,
    "g": 45,
    "b": 152
  },
  "hsl": {
    "h": 285.981,
    "s": 54.315,
    "l": 38.627
  },
  "oklch": {
    "l": 0.46476,
    "c": 0.17559,
    "h": 317.2
  },
  "luminance": 0.08656
}

Semantic roles & 50–950 ramp

primary
#7F2D98
secondary
#7ABA66
accent
#DE4A6D
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2D98

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

Preview Lab → · Contrast checker → · Palette generator →

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