#7E248D#7E248D

#7E248D is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.7% C 0.176 H 321.5°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#7E248D
RGBrgb(126, 36, 141)
HSLhsl(291, 59%, 35%)
HSVhsv(291, 74%, 55%)
CMYKcmyk(10.6%, 74.5%, 0%, 44.7%)
CIE-LABlab(33.18, 52.34, -39.17)
CIE-LCHlch(33.18, 65.37, 323.19°)
OKLaboklab(44.69% 0.1379 -0.1095)
OKLCHoklch(44.69% 0.176 321.5)
XYZxyz(14.0422, 7.6212, 25.9255)
Luminance0.0762 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E248D #338D24
analogous
#4A248D #7E248D #8D2467
triadic
#7E248D #8D7E24 #248D7E
tetradic
#7E248D #8D4A24 #338D24 #24678D
square
#7E248D #8D4A24 #338D24 #24678D
split-complementary
#7E248D #678D24 #248D4A
monochromatic
#270B2B #52185C #7E248D #AA30BE #C257D4

Accessibility & contrast

On white

8.32
#7E248D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E248D
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E248D#FFFFFF#000000##FFFFFF
##7E248D1.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004890
Deuteranopia (green-blind)
#31518B
Tritanopia (blue-blind)
#7F3856
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e248d;
/* rgb */ color: rgb(126, 36, 141);
/* oklch */ color: oklch(44.7% 0.176 321.5);
Tailwind
colors: {
  custom: {
    50: '#a768af',
    500: '#7e248d',
    950: '#000000',
  },
}
SCSS
$custom: #7e248d;
$custom-light: #a768af;
$custom-dark: #000000;
JSON
{
  "hex": "#7e248d",
  "rgb": {
    "r": 126,
    "g": 36,
    "b": 141
  },
  "hsl": {
    "h": 291.429,
    "s": 59.322,
    "l": 34.706
  },
  "oklch": {
    "l": 0.44694,
    "c": 0.17608,
    "h": 321.5
  },
  "luminance": 0.0762
}

Semantic roles & 50–950 ramp

primary
#7E248D
secondary
#63B854
accent
#E3455C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E248D

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

Preview Lab → · Contrast checker → · Palette generator →

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