#7E248A#7E248A

#7E248A is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.5% C 0.173 H 322.7°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#7E248A
RGBrgb(126, 36, 138)
HSLhsl(293, 59%, 34%)
HSVhsv(293, 74%, 54%)
CMYKcmyk(8.7%, 73.9%, 0%, 45.9%)
CIE-LABlab(32.99, 51.77, -37.62)
CIE-LCHlch(32.99, 63.99, 324.00°)
OKLaboklab(44.5% 0.138 -0.105)
OKLCHoklch(44.5% 0.173 322.7)
XYZxyz(13.8221, 7.5332, 24.7658)
Luminance0.0753 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E248A #308A24
analogous
#4B248A #7E248A #8A2463
triadic
#7E248A #8A7E24 #248A7E
tetradic
#7E248A #8A4B24 #308A24 #24638A
square
#7E248A #8A4B24 #308A24 #24638A
split-complementary
#7E248A #638A24 #248A4B
monochromatic
#250B29 #521759 #7E248A #AA31BB #C456D3

Accessibility & contrast

On white

8.38
#7E248A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E248A
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E248A#FFFFFF#000000##FFFFFF
##7E248A1.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e248a;
/* rgb */ color: rgb(126, 36, 138);
/* oklch */ color: oklch(44.5% 0.173 322.7);
Tailwind
colors: {
  custom: {
    50: '#a768ad',
    500: '#7e248a',
    950: '#000000',
  },
}
SCSS
$custom: #7e248a;
$custom-light: #a768ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7e248a",
  "rgb": {
    "r": 126,
    "g": 36,
    "b": 138
  },
  "hsl": {
    "h": 292.941,
    "s": 58.621,
    "l": 34.118
  },
  "oklch": {
    "l": 0.44497,
    "c": 0.17345,
    "h": 322.7
  },
  "luminance": 0.07532
}

Semantic roles & 50–950 ramp

primary
#7E248A
secondary
#5FB753
accent
#E24658
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E248A

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

Preview Lab → · Contrast checker → · Palette generator →

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