#7F2E9B#7F2E9B

#7F2E9B is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.8% C 0.177 H 316.0°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#7F2E9B
RGBrgb(127, 46, 155)
HSLhsl(285, 54%, 39%)
HSVhsv(285, 70%, 61%)
CMYKcmyk(18.1%, 70.3%, 0%, 39.2%)
CIE-LABlab(35.66, 51.34, -43.74)
CIE-LCHlch(35.66, 67.45, 319.57°)
OKLaboklab(46.79% 0.1275 -0.123)
OKLCHoklch(46.79% 0.177 316)
XYZxyz(15.6449, 8.8332, 31.8849)
Luminance0.0883 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2E9B #4A9B2E
analogous
#492E9B #7F2E9B #9B2E81
triadic
#7F2E9B #9B7F2E #2E9B7F
tetradic
#7F2E9B #9B492E #4A9B2E #2E819B
square
#7F2E9B #9B492E #4A9B2E #2E819B
split-complementary
#7F2E9B #819B2E #2E9B49
monochromatic
#32123D #58206C #7F2E9B #A440C6 #BA6FD4

Accessibility & contrast

On white

7.59
#7F2E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2E9B
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2E9B#FFFFFF#000000##FFFFFF
##7F2E9B1.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9E
Deuteranopia (green-blind)
#2D5698
Tritanopia (blue-blind)
#7D4461
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7f2e9b;
/* rgb */ color: rgb(127, 46, 155);
/* oklch */ color: oklch(46.8% 0.177 316.0);
Tailwind
colors: {
  custom: {
    50: '#a86eb9',
    500: '#7f2e9b',
    950: '#000000',
  },
}
SCSS
$custom: #7f2e9b;
$custom-light: #a86eb9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2e9b",
  "rgb": {
    "r": 127,
    "g": 46,
    "b": 155
  },
  "hsl": {
    "h": 284.587,
    "s": 54.229,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46786,
    "c": 0.17718,
    "h": 316
  },
  "luminance": 0.08833
}

Semantic roles & 50–950 ramp

primary
#7F2E9B
secondary
#7EBC69
accent
#DE4A70
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7F2E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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