#7C248B#7C248B

#7C248B is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.3% C 0.173 H 321.4°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#7C248B
RGBrgb(124, 36, 139)
HSLhsl(291, 59%, 34%)
HSVhsv(291, 74%, 55%)
CMYKcmyk(10.8%, 74.1%, 0%, 45.5%)
CIE-LABlab(32.73, 51.51, -38.68)
CIE-LCHlch(32.73, 64.41, 323.10°)
OKLaboklab(44.26% 0.1355 -0.1082)
OKLCHoklch(44.26% 0.173 321.4)
XYZxyz(13.6027, 7.4117, 25.1352)
Luminance0.0741 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C248B #338B24
analogous
#49248B #7C248B #8B2467
triadic
#7C248B #8B7C24 #248B7C
tetradic
#7C248B #8B4924 #338B24 #24678B
square
#7C248B #8B4924 #338B24 #24678B
split-complementary
#7C248B #678B24 #248B49
monochromatic
#250B2A #51175A #7C248B #A731BC #C156D3

Accessibility & contrast

On white

8.46
#7C248B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#7C248B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C248B
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C248B#FFFFFF#000000##FFFFFF
##7C248B1.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478E
Deuteranopia (green-blind)
#315089
Tritanopia (blue-blind)
#7D3755
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7c248b;
/* rgb */ color: rgb(124, 36, 139);
/* oklch */ color: oklch(44.3% 0.173 321.4);
Tailwind
colors: {
  custom: {
    50: '#a568ad',
    500: '#7c248b',
    950: '#000000',
  },
}
SCSS
$custom: #7c248b;
$custom-light: #a568ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7c248b",
  "rgb": {
    "r": 124,
    "g": 36,
    "b": 139
  },
  "hsl": {
    "h": 291.262,
    "s": 58.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.44264,
    "c": 0.17342,
    "h": 321.4
  },
  "luminance": 0.07411
}

Semantic roles & 50–950 ramp

primary
#7C248B
secondary
#62B753
accent
#E2465D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C248B

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

Preview Lab → · Contrast checker → · Palette generator →

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