#7E2E7B#7E2E7B

#7E2E7B is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.7% C 0.147 H 329.2°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#7E2E7B
RGBrgb(126, 46, 123)
HSLhsl(302, 47%, 34%)
HSVhsv(302, 63%, 49%)
CMYKcmyk(0%, 63.5%, 2.4%, 50.6%)
CIE-LABlab(33.61, 44.82, -27.30)
CIE-LCHlch(33.61, 52.48, 328.65°)
OKLaboklab(44.66% 0.1261 -0.0752)
OKLCHoklch(44.66% 0.147 329.2)
XYZxyz(13.1562, 7.8206, 19.5516)
Luminance0.0782 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2E7B #2E7E31
analogous
#592E7E #7E2E7B #7E2E53
triadic
#7E2E7B #7B7E2E #2E7B7E
tetradic
#7E2E7B #7E592E #2E7E31 #2E537E
square
#7E2E7B #7E592E #2E7E31 #2E537E
split-complementary
#7E2E7B #537E2E #2E7E59
monochromatic
#240D23 #511E4F #7E2E7B #AB3EA7 #C561C2

Accessibility & contrast

On white

8.19
#7E2E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7E2E7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2E7B
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2E7B#FFFFFF#000000##FFFFFF
##7E2E7B1.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27487D
Deuteranopia (green-blind)
#425379
Tritanopia (blue-blind)
#823750
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e2e7b;
/* rgb */ color: rgb(126, 46, 123);
/* oklch */ color: oklch(44.7% 0.147 329.2);
Tailwind
colors: {
  custom: {
    50: '#a66da1',
    500: '#7e2e7b',
    950: '#000000',
  },
}
SCSS
$custom: #7e2e7b;
$custom-light: #a66da1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2e7b",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 123
  },
  "hsl": {
    "h": 302.25,
    "s": 46.512,
    "l": 33.725
  },
  "oklch": {
    "l": 0.4466,
    "c": 0.14682,
    "h": 329.2
  },
  "luminance": 0.0782
}

Semantic roles & 50–950 ramp

primary
#7E2E7B
secondary
#5CAC5F
accent
#D65752
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#10070F
muted
#7F7A7E

Preview Lab

Preview with #7E2E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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