#7E247B#7E247B

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

Color values

HEX#7E247B
RGBrgb(126, 36, 123)
HSLhsl(302, 56%, 32%)
HSVhsv(302, 71%, 49%)
CMYKcmyk(0%, 71.4%, 2.4%, 50.6%)
CIE-LABlab(32.10, 49.04, -29.68)
CIE-LCHlch(32.10, 57.32, 328.81°)
OKLaboklab(43.57% 0.1381 -0.0819)
OKLCHoklch(43.57% 0.161 329.3)
XYZxyz(12.8101, 7.1284, 19.4363)
Luminance0.0713 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E247B #247E27
analogous
#54247E #7E247B #7E244E
triadic
#7E247B #7B7E24 #247B7E
tetradic
#7E247B #7E5424 #247E27 #244E7E
square
#7E247B #7E5424 #247E27 #244E7E
split-complementary
#7E247B #4E7E24 #247E54
monochromatic
#1F091E #4E164D #7E247B #AE32A9 #CD50C9

Accessibility & contrast

On white

8.66
#7E247B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E247B
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E247B#FFFFFF#000000##FFFFFF
##7E247B1.008.662.438.66
#FFFFFF8.661.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19447D
Deuteranopia (green-blind)
#3D5079
Tritanopia (blue-blind)
#83304D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e247b;
/* rgb */ color: rgb(126, 36, 123);
/* oklch */ color: oklch(43.6% 0.161 329.3);
Tailwind
colors: {
  custom: {
    50: '#a668a1',
    500: '#7e247b',
    950: '#000000',
  },
}
SCSS
$custom: #7e247b;
$custom-light: #a668a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e247b",
  "rgb": {
    "r": 126,
    "g": 36,
    "b": 123
  },
  "hsl": {
    "h": 302,
    "s": 55.556,
    "l": 31.765
  },
  "oklch": {
    "l": 0.43569,
    "c": 0.16062,
    "h": 329.3
  },
  "luminance": 0.07127
}

Semantic roles & 50–950 ramp

primary
#7E247B
secondary
#4EB051
accent
#DF4E49
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7E247B

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

Preview Lab → · Contrast checker → · Palette generator →

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