#7E2D7F#7E2D7F

#7E2D7F is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.8% C 0.152 H 327.3°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#7E2D7F
RGBrgb(126, 45, 127)
HSLhsl(299, 48%, 34%)
HSVhsv(299, 65%, 50%)
CMYKcmyk(0.8%, 64.6%, 0%, 50.2%)
CIE-LABlab(33.66, 46.01, -29.72)
CIE-LCHlch(33.66, 54.77, 327.14°)
OKLaboklab(44.77% 0.1277 -0.0821)
OKLCHoklch(44.77% 0.152 327.3)
XYZxyz(13.3731, 7.8456, 20.8845)
Luminance0.0785 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2D7F #2E7F2D
analogous
#552D7F #7E2D7F #7F2D57
triadic
#7E2D7F #7F7E2D #2D7F7E
tetradic
#7E2D7F #7F552D #2E7F2D #2D577F
square
#7E2D7F #7F552D #2E7F2D #2D577F
split-complementary
#7E2D7F #577F2D #2D7F55
monochromatic
#240D25 #511D52 #7E2D7F #AB3DAC #C560C7

Accessibility & contrast

On white

8.17
#7E2D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7E2D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2D7F
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2D7F#FFFFFF#000000##FFFFFF
##7E2D7F1.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224881
Deuteranopia (green-blind)
#40537D
Tritanopia (blue-blind)
#823852
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e2d7f;
/* rgb */ color: rgb(126, 45, 127);
/* oklch */ color: oklch(44.8% 0.152 327.3);
Tailwind
colors: {
  custom: {
    50: '#a66ca4',
    500: '#7e2d7f',
    950: '#000000',
  },
}
SCSS
$custom: #7e2d7f;
$custom-light: #a66ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2d7f",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 127
  },
  "hsl": {
    "h": 299.268,
    "s": 47.674,
    "l": 33.725
  },
  "oklch": {
    "l": 0.44769,
    "c": 0.15185,
    "h": 327.3
  },
  "luminance": 0.07845
}

Semantic roles & 50–950 ramp

primary
#7E2D7F
secondary
#5CAD5B
accent
#D75152
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7E2D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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