#7A248B#7A248B

#7A248B is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.0% C 0.173 H 320.5°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#7A248B
RGBrgb(122, 36, 139)
HSLhsl(290, 59%, 34%)
HSVhsv(290, 74%, 55%)
CMYKcmyk(12.2%, 74.1%, 0%, 45.5%)
CIE-LABlab(32.40, 51.07, -39.22)
CIE-LCHlch(32.40, 64.39, 322.48°)
OKLaboklab(43.97% 0.1331 -0.1098)
OKLCHoklch(43.97% 0.173 320.5)
XYZxyz(13.3166, 7.2641, 25.1218)
Luminance0.0726 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A248B #358B24
analogous
#47248B #7A248B #8B2469
triadic
#7A248B #8B7A24 #248B7A
tetradic
#7A248B #8B4724 #358B24 #24698B
square
#7A248B #8B4724 #358B24 #24698B
split-complementary
#7A248B #698B24 #248B47
monochromatic
#250B2A #4F175A #7A248B #A531BC #BF56D3

Accessibility & contrast

On white

8.56
#7A248B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#7A248B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A248B
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A248B#FFFFFF#000000##FFFFFF
##7A248B1.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468E
Deuteranopia (green-blind)
#2E4F89
Tritanopia (blue-blind)
#7B3855
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7a248b;
/* rgb */ color: rgb(122, 36, 139);
/* oklch */ color: oklch(44.0% 0.173 320.5);
Tailwind
colors: {
  custom: {
    50: '#a468ad',
    500: '#7a248b',
    950: '#000000',
  },
}
SCSS
$custom: #7a248b;
$custom-light: #a468ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7a248b",
  "rgb": {
    "r": 122,
    "g": 36,
    "b": 139
  },
  "hsl": {
    "h": 290.097,
    "s": 58.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.43967,
    "c": 0.17254,
    "h": 320.5
  },
  "luminance": 0.07263
}

Semantic roles & 50–950 ramp

primary
#7A248B
secondary
#64B753
accent
#E24660
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7A248B

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

Preview Lab → · Contrast checker → · Palette generator →

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