#7E2E71#7E2E71

#7E2E71 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.1% C 0.138 H 334.6°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#7E2E71
RGBrgb(126, 46, 113)
HSLhsl(310, 47%, 34%)
HSVhsv(310, 63%, 49%)
CMYKcmyk(0%, 63.5%, 10.3%, 50.6%)
CIE-LABlab(33.10, 43.06, -21.81)
CIE-LCHlch(33.10, 48.26, 333.14°)
OKLaboklab(44.13% 0.1248 -0.0594)
OKLCHoklch(44.13% 0.138 334.6)
XYZxyz(12.5619, 7.5828, 16.4216)
Luminance0.0758 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2E71 #2E7E3B
analogous
#632E7E #7E2E71 #7E2E49
triadic
#7E2E71 #717E2E #2E717E
tetradic
#7E2E71 #7E632E #2E7E3B #2E497E
square
#7E2E71 #7E632E #2E7E3B #2E497E
split-complementary
#7E2E71 #497E2E #2E7E63
monochromatic
#240D21 #511E49 #7E2E71 #AB3E99 #C561B5

Accessibility & contrast

On white

8.35
#7E2E71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#7E2E71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2E71
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2E71#FFFFFF#000000##FFFFFF
##7E2E711.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e2e71;
/* rgb */ color: rgb(126, 46, 113);
/* oklch */ color: oklch(44.1% 0.138 334.6);
Tailwind
colors: {
  custom: {
    50: '#a66c9a',
    500: '#7e2e71',
    950: '#000000',
  },
}
SCSS
$custom: #7e2e71;
$custom-light: #a66c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2e71",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 113
  },
  "hsl": {
    "h": 309.75,
    "s": 46.512,
    "l": 33.725
  },
  "oklch": {
    "l": 0.44125,
    "c": 0.13825,
    "h": 334.6
  },
  "luminance": 0.07582
}

Semantic roles & 50–950 ramp

primary
#7E2E71
secondary
#5CAC69
accent
#D66752
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #7E2E71

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

Preview Lab → · Contrast checker → · Palette generator →

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