#7F2E9F#7F2E9F

#7F2E9F is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.1% C 0.181 H 314.6°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#7F2E9F
RGBrgb(127, 46, 159)
HSLhsl(283, 55%, 40%)
HSVhsv(283, 71%, 62%)
CMYKcmyk(20.1%, 71.1%, 0%, 37.6%)
CIE-LABlab(35.93, 52.18, -45.74)
CIE-LCHlch(35.93, 69.39, 318.76°)
OKLaboklab(47.06% 0.1272 -0.1288)
OKLCHoklch(47.06% 0.181 314.6)
XYZxyz(15.9864, 8.9698, 33.6834)
Luminance0.0897 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2E9F #4E9F2E
analogous
#472E9F #7F2E9F #9F2E86
triadic
#7F2E9F #9F7F2E #2E9F7F
tetradic
#7F2E9F #9F472E #4E9F2E #2E869F
square
#7F2E9F #9F472E #4E9F2E #2E869F
split-complementary
#7F2E9F #869F2E #2E9F47
monochromatic
#331340 #592070 #7F2E9F #A242C8 #BA71D6

Accessibility & contrast

On white

7.52
#7F2E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#7F2E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2E9F
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2E9F#FFFFFF#000000##FFFFFF
##7F2E9F1.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A2
Deuteranopia (green-blind)
#29579C
Tritanopia (blue-blind)
#7C4563
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7f2e9f;
/* rgb */ color: rgb(127, 46, 159);
/* oklch */ color: oklch(47.1% 0.181 314.6);
Tailwind
colors: {
  custom: {
    50: '#a86ebc',
    500: '#7f2e9f',
    950: '#000000',
  },
}
SCSS
$custom: #7f2e9f;
$custom-light: #a86ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2e9f",
  "rgb": {
    "r": 127,
    "g": 46,
    "b": 159
  },
  "hsl": {
    "h": 283.009,
    "s": 55.122,
    "l": 40.196
  },
  "oklch": {
    "l": 0.4706,
    "c": 0.18104,
    "h": 314.6
  },
  "luminance": 0.08969
}

Semantic roles & 50–950 ramp

primary
#7F2E9F
secondary
#83BE6B
accent
#DE4974
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7F2E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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