#7E2875#7E2875

#7E2875 is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.6% C 0.150 H 332.3°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#7E2875
RGBrgb(126, 40, 117)
HSLhsl(306, 52%, 33%)
HSVhsv(306, 68%, 49%)
CMYKcmyk(0%, 68.3%, 7.1%, 50.6%)
CIE-LABlab(32.34, 46.39, -25.52)
CIE-LCHlch(32.34, 52.94, 331.19°)
OKLaboklab(43.64% 0.1331 -0.0699)
OKLCHoklch(43.64% 0.15 332.3)
XYZxyz(12.5739, 7.2385, 17.5611)
Luminance0.0724 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2875 #287E31
analogous
#5C287E #7E2875 #7E284A
triadic
#7E2875 #757E28 #28757E
tetradic
#7E2875 #7E5C28 #287E31 #284A7E
square
#7E2875 #7E5C28 #287E31 #284A7E
split-complementary
#7E2875 #4A7E28 #287E5C
monochromatic
#210B1F #50194A #7E2875 #AC37A0 #CA57BE

Accessibility & contrast

On white

8.58
#7E2875 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#7E2875 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2875
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2875#FFFFFF#000000##FFFFFF
##7E28751.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244477
Deuteranopia (green-blind)
#425073
Tritanopia (blue-blind)
#83304B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e2875;
/* rgb */ color: rgb(126, 40, 117);
/* oklch */ color: oklch(43.6% 0.150 332.3);
Tailwind
colors: {
  custom: {
    50: '#a6699d',
    500: '#7e2875',
    950: '#000000',
  },
}
SCSS
$custom: #7e2875;
$custom-light: #a6699d;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2875",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 117
  },
  "hsl": {
    "h": 306.279,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.43641,
    "c": 0.15035,
    "h": 332.3
  },
  "luminance": 0.07238
}

Semantic roles & 50–950 ramp

primary
#7E2875
secondary
#53AF5D
accent
#DB5B4D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #7E2875

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

Preview Lab → · Contrast checker → · Palette generator →

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