#7F2E99#7F2E99

#7F2E99 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.7% C 0.175 H 316.8°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#7F2E99
RGBrgb(127, 46, 153)
HSLhsl(285, 54%, 39%)
HSVhsv(285, 70%, 60%)
CMYKcmyk(17%, 69.9%, 0%, 40%)
CIE-LABlab(35.53, 50.93, -42.74)
CIE-LCHlch(35.53, 66.48, 320.00°)
OKLaboklab(46.65% 0.1277 -0.12)
OKLCHoklch(46.65% 0.175 316.8)
XYZxyz(15.4783, 8.7665, 31.0076)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2E99 #48992E
analogous
#4A2E99 #7F2E99 #992E7E
triadic
#7F2E99 #997F2E #2E997F
tetradic
#7F2E99 #994A2E #48992E #2E7E99
square
#7F2E99 #994A2E #48992E #2E7E99
split-complementary
#7F2E99 #7E992E #2E994A
monochromatic
#31123B #58206A #7F2E99 #A53FC5 #BB6ED3

Accessibility & contrast

On white

7.63
#7F2E99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#7F2E99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2E99
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2E99#FFFFFF#000000##FFFFFF
##7F2E991.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9C
Deuteranopia (green-blind)
#2F5697
Tritanopia (blue-blind)
#7E4360
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7f2e99;
/* rgb */ color: rgb(127, 46, 153);
/* oklch */ color: oklch(46.7% 0.175 316.8);
Tailwind
colors: {
  custom: {
    50: '#a76eb8',
    500: '#7f2e99',
    950: '#000000',
  },
}
SCSS
$custom: #7f2e99;
$custom-light: #a76eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2e99",
  "rgb": {
    "r": 127,
    "g": 46,
    "b": 153
  },
  "hsl": {
    "h": 285.421,
    "s": 53.769,
    "l": 39.02
  },
  "oklch": {
    "l": 0.46651,
    "c": 0.17526,
    "h": 316.8
  },
  "luminance": 0.08766
}

Semantic roles & 50–950 ramp

primary
#7F2E99
secondary
#7CBB68
accent
#DD4B6E
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7F2E99

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

Preview Lab → · Contrast checker → · Palette generator →

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