#7E247C#7E247C

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

Color values

HEX#7E247C
RGBrgb(126, 36, 124)
HSLhsl(301, 56%, 32%)
HSVhsv(301, 71%, 49%)
CMYKcmyk(0%, 71.4%, 1.6%, 50.6%)
CIE-LABlab(32.15, 49.21, -30.22)
CIE-LCHlch(32.15, 57.75, 328.44°)
OKLaboklab(43.63% 0.1382 -0.0835)
OKLCHoklch(43.63% 0.161 328.9)
XYZxyz(12.8730, 7.1535, 19.7676)
Luminance0.0715 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E247C #247E26
analogous
#53247E #7E247C #7E244F
triadic
#7E247C #7C7E24 #247C7E
tetradic
#7E247C #7E5324 #247E26 #244F7E
square
#7E247C #7E5324 #247E26 #244F7E
split-complementary
#7E247C #4F7E24 #247E53
monochromatic
#1F091E #4E164D #7E247C #AE32AB #CD50CA

Accessibility & contrast

On white

8.64
#7E247C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#7E247C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E247C
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E247C#FFFFFF#000000##FFFFFF
##7E247C1.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18447E
Deuteranopia (green-blind)
#3C507A
Tritanopia (blue-blind)
#82304D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e247c;
/* rgb */ color: rgb(126, 36, 124);
/* oklch */ color: oklch(43.6% 0.161 328.9);
Tailwind
colors: {
  custom: {
    50: '#a668a2',
    500: '#7e247c',
    950: '#000000',
  },
}
SCSS
$custom: #7e247c;
$custom-light: #a668a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e247c",
  "rgb": {
    "r": 126,
    "g": 36,
    "b": 124
  },
  "hsl": {
    "h": 301.333,
    "s": 55.556,
    "l": 31.765
  },
  "oklch": {
    "l": 0.43628,
    "c": 0.16145,
    "h": 328.9
  },
  "luminance": 0.07153
}

Semantic roles & 50–950 ramp

primary
#7E247C
secondary
#4EB050
accent
#DF4C49
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7E247C

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

Preview Lab → · Contrast checker → · Palette generator →

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