#7F2E83#7F2E83

#7F2E83 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.3% C 0.155 H 325.8°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#7F2E83
RGBrgb(127, 46, 131)
HSLhsl(297, 48%, 35%)
HSVhsv(297, 65%, 51%)
CMYKcmyk(3.1%, 64.9%, 0%, 48.6%)
CIE-LABlab(34.20, 46.57, -31.34)
CIE-LCHlch(34.20, 56.14, 326.06°)
OKLaboklab(45.27% 0.1279 -0.0868)
OKLCHoklch(45.27% 0.155 325.8)
XYZxyz(13.8258, 8.1056, 22.3046)
Luminance0.0810 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2E83 #32832E
analogous
#542E83 #7F2E83 #832E5D
triadic
#7F2E83 #837F2E #2E837F
tetradic
#7F2E83 #83542E #32832E #2E5D83
square
#7F2E83 #83542E #32832E #2E5D83
split-complementary
#7F2E83 #5D832E #2E8354
monochromatic
#270E28 #531E56 #7F2E83 #AB3EB0 #C463C8

Accessibility & contrast

On white

8.01
#7F2E83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7F2E83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2E83
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2E83#FFFFFF#000000##FFFFFF
##7F2E831.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204A86
Deuteranopia (green-blind)
#3F5481
Tritanopia (blue-blind)
#823A54
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f2e83;
/* rgb */ color: rgb(127, 46, 131);
/* oklch */ color: oklch(45.3% 0.155 325.8);
Tailwind
colors: {
  custom: {
    50: '#a76da7',
    500: '#7f2e83',
    950: '#000000',
  },
}
SCSS
$custom: #7f2e83;
$custom-light: #a76da7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2e83",
  "rgb": {
    "r": 127,
    "g": 46,
    "b": 131
  },
  "hsl": {
    "h": 297.176,
    "s": 48.023,
    "l": 34.706
  },
  "oklch": {
    "l": 0.45266,
    "c": 0.15458,
    "h": 325.8
  },
  "luminance": 0.08105
}

Semantic roles & 50–950 ramp

primary
#7F2E83
secondary
#62AF5E
accent
#D85057
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7F2E83

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

Preview Lab → · Contrast checker → · Palette generator →

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