#7E248B#7E248B

#7E248B is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.6% C 0.174 H 322.3°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#7E248B
RGBrgb(126, 36, 139)
HSLhsl(292, 59%, 34%)
HSVhsv(292, 74%, 55%)
CMYKcmyk(9.4%, 74.1%, 0%, 45.5%)
CIE-LABlab(33.05, 51.96, -38.14)
CIE-LCHlch(33.05, 64.45, 323.72°)
OKLaboklab(44.56% 0.138 -0.1065)
OKLCHoklch(44.56% 0.174 322.3)
XYZxyz(13.8948, 7.5622, 25.1489)
Luminance0.0756 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E248B #318B24
analogous
#4B248B #7E248B #8B2465
triadic
#7E248B #8B7E24 #248B7E
tetradic
#7E248B #8B4B24 #318B24 #24658B
square
#7E248B #8B4B24 #318B24 #24658B
split-complementary
#7E248B #658B24 #248B4B
monochromatic
#260B2A #52175A #7E248B #AA31BC #C356D3

Accessibility & contrast

On white

8.36
#7E248B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#7E248B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E248B
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E248B#FFFFFF#000000##FFFFFF
##7E248B1.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478E
Deuteranopia (green-blind)
#335189
Tritanopia (blue-blind)
#803755
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e248b;
/* rgb */ color: rgb(126, 36, 139);
/* oklch */ color: oklch(44.6% 0.174 322.3);
Tailwind
colors: {
  custom: {
    50: '#a768ad',
    500: '#7e248b',
    950: '#000000',
  },
}
SCSS
$custom: #7e248b;
$custom-light: #a768ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7e248b",
  "rgb": {
    "r": 126,
    "g": 36,
    "b": 139
  },
  "hsl": {
    "h": 292.427,
    "s": 58.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.44562,
    "c": 0.17433,
    "h": 322.3
  },
  "luminance": 0.07561
}

Semantic roles & 50–950 ramp

primary
#7E248B
secondary
#60B753
accent
#E24659
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E248B

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

Preview Lab → · Contrast checker → · Palette generator →

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