#7E2E7E#7E2E7E

#7E2E7E is a dark, vivid purple. Relative luminance 0.079; OKLCH L 44.8% C 0.149 H 327.7°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#7E2E7E
RGBrgb(126, 46, 126)
HSLhsl(300, 47%, 34%)
HSVhsv(300, 63%, 49%)
CMYKcmyk(0%, 63.5%, 0%, 50.6%)
CIE-LABlab(33.77, 45.37, -28.93)
CIE-LCHlch(33.77, 53.81, 327.48°)
OKLaboklab(44.83% 0.1264 -0.0798)
OKLCHoklch(44.83% 0.149 327.7)
XYZxyz(13.3469, 7.8968, 20.5559)
Luminance0.0790 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2E7E #2E7E2E
analogous
#562E7E #7E2E7E #7E2E56
triadic
#7E2E7E #7E7E2E #2E7E7E
tetradic
#7E2E7E #7E562E #2E7E2E #2E567E
square
#7E2E7E #7E562E #2E7E2E #2E567E
split-complementary
#7E2E7E #567E2E #2E7E56
monochromatic
#240D24 #511E51 #7E2E7E #AB3EAB #C561C5

Accessibility & contrast

On white

8.14
#7E2E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7E2E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2E7E
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2E7E#FFFFFF#000000##FFFFFF
##7E2E7E1.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244980
Deuteranopia (green-blind)
#41537C
Tritanopia (blue-blind)
#823851
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e2e7e;
/* rgb */ color: rgb(126, 46, 126);
/* oklch */ color: oklch(44.8% 0.149 327.7);
Tailwind
colors: {
  custom: {
    50: '#a66da4',
    500: '#7e2e7e',
    950: '#000000',
  },
}
SCSS
$custom: #7e2e7e;
$custom-light: #a66da4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2e7e",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 126
  },
  "hsl": {
    "h": 300,
    "s": 46.512,
    "l": 33.725
  },
  "oklch": {
    "l": 0.4483,
    "c": 0.14949,
    "h": 327.7
  },
  "luminance": 0.07896
}

Semantic roles & 50–950 ramp

primary
#7E2E7E
secondary
#5CAC5C
accent
#D65252
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7E2E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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