#7F2E9A#7F2E9A

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

Color values

HEX#7F2E9A
RGBrgb(127, 46, 154)
HSLhsl(285, 54%, 39%)
HSVhsv(285, 70%, 60%)
CMYKcmyk(17.5%, 70.1%, 0%, 39.6%)
CIE-LABlab(35.60, 51.13, -43.24)
CIE-LCHlch(35.60, 66.97, 319.78°)
OKLaboklab(46.72% 0.1276 -0.1215)
OKLCHoklch(46.72% 0.176 316.4)
XYZxyz(15.5612, 8.7997, 31.4444)
Luminance0.0880 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2E9A #499A2E
analogous
#492E9A #7F2E9A #9A2E7F
triadic
#7F2E9A #9A7F2E #2E9A7F
tetradic
#7F2E9A #9A492E #499A2E #2E7F9A
square
#7F2E9A #9A492E #499A2E #2E7F9A
split-complementary
#7F2E9A #7F9A2E #2E9A49
monochromatic
#31123C #58206B #7F2E9A #A43FC6 #BB6FD4

Accessibility & contrast

On white

7.61
#7F2E9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#7F2E9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2E9A
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2E9A#FFFFFF#000000##FFFFFF
##7F2E9A1.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9D
Deuteranopia (green-blind)
#2E5698
Tritanopia (blue-blind)
#7D4360
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7f2e9a;
/* rgb */ color: rgb(127, 46, 154);
/* oklch */ color: oklch(46.7% 0.176 316.4);
Tailwind
colors: {
  custom: {
    50: '#a86eb8',
    500: '#7f2e9a',
    950: '#000000',
  },
}
SCSS
$custom: #7f2e9a;
$custom-light: #a86eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2e9a",
  "rgb": {
    "r": 127,
    "g": 46,
    "b": 154
  },
  "hsl": {
    "h": 285,
    "s": 54,
    "l": 39.216
  },
  "oklch": {
    "l": 0.46719,
    "c": 0.17622,
    "h": 316.4
  },
  "luminance": 0.08799
}

Semantic roles & 50–950 ramp

primary
#7F2E9A
secondary
#7DBB69
accent
#DD4A6F
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7F2E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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