#7E2D7C#7E2D7C

#7E2D7C is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.6% C 0.149 H 328.7°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#7E2D7C
RGBrgb(126, 45, 124)
HSLhsl(301, 47%, 34%)
HSVhsv(301, 64%, 49%)
CMYKcmyk(0%, 64.3%, 1.6%, 50.6%)
CIE-LABlab(33.50, 45.46, -28.10)
CIE-LCHlch(33.50, 53.44, 328.27°)
OKLaboklab(44.6% 0.1275 -0.0775)
OKLCHoklch(44.6% 0.149 328.7)
XYZxyz(13.1805, 7.7685, 19.8701)
Luminance0.0777 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2D7C #2D7E2F
analogous
#572D7E #7E2D7C #7E2D53
triadic
#7E2D7C #7C7E2D #2D7C7E
tetradic
#7E2D7C #7E572D #2D7E2F #2D537E
square
#7E2D7C #7E572D #2D7E2F #2D537E
split-complementary
#7E2D7C #537E2D #2D7E57
monochromatic
#240D23 #511D50 #7E2D7C #AB3DA8 #C65FC3

Accessibility & contrast

On white

8.22
#7E2D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7E2D7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2D7C
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2D7C#FFFFFF#000000##FFFFFF
##7E2D7C1.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25487E
Deuteranopia (green-blind)
#41537A
Tritanopia (blue-blind)
#823750
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e2d7c;
/* rgb */ color: rgb(126, 45, 124);
/* oklch */ color: oklch(44.6% 0.149 328.7);
Tailwind
colors: {
  custom: {
    50: '#a66ca2',
    500: '#7e2d7c',
    950: '#000000',
  },
}
SCSS
$custom: #7e2d7c;
$custom-light: #a66ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2d7c",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 124
  },
  "hsl": {
    "h": 301.481,
    "s": 47.368,
    "l": 33.529
  },
  "oklch": {
    "l": 0.44598,
    "c": 0.14918,
    "h": 328.7
  },
  "luminance": 0.07768
}

Semantic roles & 50–950 ramp

primary
#7E2D7C
secondary
#5AAC5C
accent
#D75451
background
#FAF6FA
surface
#F4ECF3
border
#CEC7CD
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7E2D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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