#7C248E#7C248E

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

Color values

HEX#7C248E
RGBrgb(124, 36, 142)
HSLhsl(290, 60%, 35%)
HSVhsv(290, 75%, 56%)
CMYKcmyk(12.7%, 74.6%, 0%, 44.3%)
CIE-LABlab(32.92, 52.09, -40.22)
CIE-LCHlch(32.92, 65.81, 322.33°)
OKLaboklab(44.46% 0.1353 -0.1127)
OKLCHoklch(44.46% 0.176 320.2)
XYZxyz(13.8249, 7.5005, 26.3055)
Luminance0.0750 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C248E #368E24
analogous
#47248E #7C248E #8E246B
triadic
#7C248E #8E7C24 #248E7C
tetradic
#7C248E #8E4724 #368E24 #246B8E
square
#7C248E #8E4724 #368E24 #246B8E
split-complementary
#7C248E #6B8E24 #248E47
monochromatic
#270B2C #51185D #7C248E #A730BF #BF58D5

Accessibility & contrast

On white

8.40
#7C248E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#7C248E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C248E
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C248E#FFFFFF#000000##FFFFFF
##7C248E1.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004791
Deuteranopia (green-blind)
#2E508C
Tritanopia (blue-blind)
#7D3957
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7c248e;
/* rgb */ color: rgb(124, 36, 142);
/* oklch */ color: oklch(44.5% 0.176 320.2);
Tailwind
colors: {
  custom: {
    50: '#a568b0',
    500: '#7c248e',
    950: '#000000',
  },
}
SCSS
$custom: #7c248e;
$custom-light: #a568b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c248e",
  "rgb": {
    "r": 124,
    "g": 36,
    "b": 142
  },
  "hsl": {
    "h": 289.811,
    "s": 59.551,
    "l": 34.902
  },
  "oklch": {
    "l": 0.44464,
    "c": 0.1761,
    "h": 320.2
  },
  "luminance": 0.075
}

Semantic roles & 50–950 ramp

primary
#7C248E
secondary
#66B955
accent
#E34560
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C248E

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

Preview Lab → · Contrast checker → · Palette generator →

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