#7E2F71#7E2F71

#7E2F71 is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.2% C 0.137 H 334.6°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#7E2F71
RGBrgb(126, 47, 113)
HSLhsl(310, 46%, 34%)
HSVhsv(310, 63%, 49%)
CMYKcmyk(0%, 62.7%, 10.3%, 50.6%)
CIE-LABlab(33.27, 42.59, -21.54)
CIE-LCHlch(33.27, 47.73, 333.17°)
OKLaboklab(44.25% 0.1235 -0.0586)
OKLCHoklch(44.25% 0.137 334.6)
XYZxyz(12.6014, 7.6619, 16.4348)
Luminance0.0766 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2F71 #2F7E3C
analogous
#642F7E #7E2F71 #7E2F4A
triadic
#7E2F71 #717E2F #2F717E
tetradic
#7E2F71 #7E642F #2F7E3C #2F4A7E
square
#7E2F71 #7E642F #2F7E3C #2F4A7E
split-complementary
#7E2F71 #4A7E2F #2F7E64
monochromatic
#250E21 #511E49 #7E2F71 #AB4099 #C563B5

Accessibility & contrast

On white

8.29
#7E2F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7E2F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2F71
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2F71#FFFFFF#000000##FFFFFF
##7E2F711.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E4773
Deuteranopia (green-blind)
#47526F
Tritanopia (blue-blind)
#84344B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e2f71;
/* rgb */ color: rgb(126, 47, 113);
/* oklch */ color: oklch(44.2% 0.137 334.6);
Tailwind
colors: {
  custom: {
    50: '#a66d9a',
    500: '#7e2f71',
    950: '#000000',
  },
}
SCSS
$custom: #7e2f71;
$custom-light: #a66d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2f71",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 113
  },
  "hsl": {
    "h": 309.873,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.44249,
    "c": 0.1367,
    "h": 334.6
  },
  "luminance": 0.07661
}

Semantic roles & 50–950 ramp

primary
#7E2F71
secondary
#5DAC6A
accent
#D56852
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #7E2F71

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

Preview Lab → · Contrast checker → · Palette generator →

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