#7E248C#7E248C

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

Color values

HEX#7E248C
RGBrgb(126, 36, 140)
HSLhsl(292, 59%, 35%)
HSVhsv(292, 74%, 55%)
CMYKcmyk(10%, 74.3%, 0%, 45.1%)
CIE-LABlab(33.12, 52.15, -38.65)
CIE-LCHlch(33.12, 64.91, 323.45°)
OKLaboklab(44.63% 0.1379 -0.108)
OKLCHoklch(44.63% 0.175 321.9)
XYZxyz(13.9682, 7.5916, 25.5354)
Luminance0.0759 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E248C #328C24
analogous
#4A248C #7E248C #8C2466
triadic
#7E248C #8C7E24 #248C7E
tetradic
#7E248C #8C4A24 #328C24 #24668C
square
#7E248C #8C4A24 #328C24 #24668C
split-complementary
#7E248C #668C24 #248C4A
monochromatic
#260B2B #52175B #7E248C #AA31BD #C357D4

Accessibility & contrast

On white

8.34
#7E248C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E248C
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E248C#FFFFFF#000000##FFFFFF
##7E248C1.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478F
Deuteranopia (green-blind)
#32518A
Tritanopia (blue-blind)
#7F3756
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e248c;
/* rgb */ color: rgb(126, 36, 140);
/* oklch */ color: oklch(44.6% 0.175 321.9);
Tailwind
colors: {
  custom: {
    50: '#a768ae',
    500: '#7e248c',
    950: '#000000',
  },
}
SCSS
$custom: #7e248c;
$custom-light: #a768ae;
$custom-dark: #000000;
JSON
{
  "hex": "#7e248c",
  "rgb": {
    "r": 126,
    "g": 36,
    "b": 140
  },
  "hsl": {
    "h": 291.923,
    "s": 59.091,
    "l": 34.51
  },
  "oklch": {
    "l": 0.44628,
    "c": 0.1752,
    "h": 321.9
  },
  "luminance": 0.07591
}

Semantic roles & 50–950 ramp

primary
#7E248C
secondary
#61B854
accent
#E2465B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E248C

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

Preview Lab → · Contrast checker → · Palette generator →

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