#7F2E9D#7F2E9D

#7F2E9D is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.9% C 0.179 H 315.3°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#7F2E9D
RGBrgb(127, 46, 157)
HSLhsl(284, 55%, 40%)
HSVhsv(284, 71%, 62%)
CMYKcmyk(19.1%, 70.7%, 0%, 38.4%)
CIE-LABlab(35.79, 51.76, -44.74)
CIE-LCHlch(35.79, 68.42, 319.16°)
OKLaboklab(46.92% 0.1274 -0.1259)
OKLCHoklch(46.92% 0.179 315.3)
XYZxyz(15.8142, 8.9009, 32.7768)
Luminance0.0890 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2E9D #4C9D2E
analogous
#482E9D #7F2E9D #9D2E83
triadic
#7F2E9D #9D7F2E #2E9D7F
tetradic
#7F2E9D #9D482E #4C9D2E #2E839D
square
#7F2E9D #9D482E #4C9D2E #2E839D
split-complementary
#7F2E9D #839D2E #2E9D48
monochromatic
#32123E #59206E #7F2E9D #A341C7 #BA70D5

Accessibility & contrast

On white

7.55
#7F2E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7F2E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2E9D
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2E9D#FFFFFF#000000##FFFFFF
##7F2E9D1.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A0
Deuteranopia (green-blind)
#2B569A
Tritanopia (blue-blind)
#7D4462
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7f2e9d;
/* rgb */ color: rgb(127, 46, 157);
/* oklch */ color: oklch(46.9% 0.179 315.3);
Tailwind
colors: {
  custom: {
    50: '#a86eba',
    500: '#7f2e9d',
    950: '#000000',
  },
}
SCSS
$custom: #7f2e9d;
$custom-light: #a86eba;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2e9d",
  "rgb": {
    "r": 127,
    "g": 46,
    "b": 157
  },
  "hsl": {
    "h": 283.784,
    "s": 54.68,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46922,
    "c": 0.17911,
    "h": 315.3
  },
  "luminance": 0.089
}

Semantic roles & 50–950 ramp

primary
#7F2E9D
secondary
#80BD6A
accent
#DE4A72
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7F2E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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