#7E2F7D#7E2F7D

#7E2F7D is a dark, vivid purple. Relative luminance 0.079; OKLCH L 44.9% C 0.147 H 328.2°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#7E2F7D
RGBrgb(126, 47, 125)
HSLhsl(301, 46%, 34%)
HSVhsv(301, 63%, 49%)
CMYKcmyk(0%, 62.7%, 0.8%, 50.6%)
CIE-LABlab(33.88, 44.73, -28.13)
CIE-LCHlch(33.88, 52.84, 327.84°)
OKLaboklab(44.89% 0.125 -0.0775)
OKLCHoklch(44.89% 0.147 328.2)
XYZxyz(13.3222, 7.9502, 20.2309)
Luminance0.0795 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2F7D #2F7E30
analogous
#582F7E #7E2F7D #7E2F56
triadic
#7E2F7D #7D7E2F #2F7D7E
tetradic
#7E2F7D #7E582F #2F7E30 #2F567E
square
#7E2F7D #7E582F #2F7E30 #2F567E
split-complementary
#7E2F7D #567E2F #2F7E58
monochromatic
#250E25 #511E51 #7E2F7D #AB40A9 #C563C3

Accessibility & contrast

On white

8.11
#7E2F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7E2F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2F7D
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2F7D#FFFFFF#000000##FFFFFF
##7E2F7D1.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26497F
Deuteranopia (green-blind)
#42537B
Tritanopia (blue-blind)
#823951
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e2f7d;
/* rgb */ color: rgb(126, 47, 125);
/* oklch */ color: oklch(44.9% 0.147 328.2);
Tailwind
colors: {
  custom: {
    50: '#a66da3',
    500: '#7e2f7d',
    950: '#000000',
  },
}
SCSS
$custom: #7e2f7d;
$custom-light: #a66da3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2f7d",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 125
  },
  "hsl": {
    "h": 300.759,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.44893,
    "c": 0.1471,
    "h": 328.2
  },
  "luminance": 0.07949
}

Semantic roles & 50–950 ramp

primary
#7E2F7D
secondary
#5DAC5E
accent
#D55452
background
#FAF6FA
surface
#F4ECF3
border
#CEC7CD
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7E2F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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