#7E248E#7E248E

#7E248E is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.8% C 0.177 H 321.1°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#7E248E
RGBrgb(126, 36, 142)
HSLhsl(291, 60%, 35%)
HSVhsv(291, 75%, 56%)
CMYKcmyk(11.3%, 74.6%, 0%, 44.3%)
CIE-LABlab(33.25, 52.53, -39.68)
CIE-LCHlch(33.25, 65.83, 322.93°)
OKLaboklab(44.76% 0.1378 -0.111)
OKLCHoklch(44.76% 0.177 321.1)
XYZxyz(14.1170, 7.6511, 26.3192)
Luminance0.0765 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E248E #348E24
analogous
#49248E #7E248E #8E2469
triadic
#7E248E #8E7E24 #248E7E
tetradic
#7E248E #8E4924 #348E24 #24698E
square
#7E248E #8E4924 #348E24 #24698E
split-complementary
#7E248E #698E24 #248E49
monochromatic
#270B2C #53185D #7E248E #A930BF #C258D5

Accessibility & contrast

On white

8.30
#7E248E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7E248E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E248E
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E248E#FFFFFF#000000##FFFFFF
##7E248E1.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004891
Deuteranopia (green-blind)
#31518C
Tritanopia (blue-blind)
#7F3857
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e248e;
/* rgb */ color: rgb(126, 36, 142);
/* oklch */ color: oklch(44.8% 0.177 321.1);
Tailwind
colors: {
  custom: {
    50: '#a768b0',
    500: '#7e248e',
    950: '#000000',
  },
}
SCSS
$custom: #7e248e;
$custom-light: #a768b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e248e",
  "rgb": {
    "r": 126,
    "g": 36,
    "b": 142
  },
  "hsl": {
    "h": 290.943,
    "s": 59.551,
    "l": 34.902
  },
  "oklch": {
    "l": 0.4476,
    "c": 0.17696,
    "h": 321.1
  },
  "luminance": 0.0765
}

Semantic roles & 50–950 ramp

primary
#7E248E
secondary
#64B955
accent
#E3455D
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E248E

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

Preview Lab → · Contrast checker → · Palette generator →

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