#7E2785#7E2785

#7E2785 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.5% C 0.165 H 324.7°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#7E2785
RGBrgb(126, 39, 133)
HSLhsl(296, 55%, 34%)
HSVhsv(296, 71%, 52%)
CMYKcmyk(5.3%, 70.7%, 0%, 47.8%)
CIE-LABlab(33.09, 49.67, -34.35)
CIE-LCHlch(33.09, 60.39, 325.33°)
OKLaboklab(44.47% 0.135 -0.0955)
OKLCHoklch(44.47% 0.165 324.7)
XYZxyz(13.5630, 7.5810, 22.9346)
Luminance0.0758 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2785 #2E8527
analogous
#4F2785 #7E2785 #85275D
triadic
#7E2785 #857E27 #27857E
tetradic
#7E2785 #854F27 #2E8527 #275D85
square
#7E2785 #854F27 #2E8527 #275D85
split-complementary
#7E2785 #5D8527 #27854F
monochromatic
#240B26 #511956 #7E2785 #AB35B4 #C558CE

Accessibility & contrast

On white

8.35
#7E2785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#7E2785 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2785
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2785#FFFFFF#000000##FFFFFF
##7E27851.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104788
Deuteranopia (green-blind)
#395183
Tritanopia (blue-blind)
#813653
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e2785;
/* rgb */ color: rgb(126, 39, 133);
/* oklch */ color: oklch(44.5% 0.165 324.7);
Tailwind
colors: {
  custom: {
    50: '#a669a9',
    500: '#7e2785',
    950: '#000000',
  },
}
SCSS
$custom: #7e2785;
$custom-light: #a669a9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2785",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 133
  },
  "hsl": {
    "h": 295.532,
    "s": 54.651,
    "l": 33.725
  },
  "oklch": {
    "l": 0.44473,
    "c": 0.16538,
    "h": 324.7
  },
  "luminance": 0.0758
}

Semantic roles & 50–950 ramp

primary
#7E2785
secondary
#5CB355
accent
#DE4A55
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2785

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

Preview Lab → · Contrast checker → · Palette generator →

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