#7A248C#7A248C

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

Color values

HEX#7A248C
RGBrgb(122, 36, 140)
HSLhsl(290, 59%, 35%)
HSVhsv(290, 74%, 55%)
CMYKcmyk(12.9%, 74.3%, 0%, 45.1%)
CIE-LABlab(32.47, 51.26, -39.73)
CIE-LCHlch(32.47, 64.86, 322.22°)
OKLaboklab(44.03% 0.133 -0.1113)
OKLCHoklch(44.03% 0.173 320.1)
XYZxyz(13.3900, 7.2935, 25.5083)
Luminance0.0729 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A248C #368C24
analogous
#46248C #7A248C #8C246A
triadic
#7A248C #8C7A24 #248C7A
tetradic
#7A248C #8C4624 #368C24 #246A8C
square
#7A248C #8C4624 #368C24 #246A8C
split-complementary
#7A248C #6A8C24 #248C46
monochromatic
#250B2B #50175B #7A248C #A431BD #BE57D4

Accessibility & contrast

On white

8.54
#7A248C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#7A248C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A248C
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A248C#FFFFFF#000000##FFFFFF
##7A248C1.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478F
Deuteranopia (green-blind)
#2E4F8A
Tritanopia (blue-blind)
#7A3856
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7a248c;
/* rgb */ color: rgb(122, 36, 140);
/* oklch */ color: oklch(44.0% 0.173 320.1);
Tailwind
colors: {
  custom: {
    50: '#a468ae',
    500: '#7a248c',
    950: '#000000',
  },
}
SCSS
$custom: #7a248c;
$custom-light: #a468ae;
$custom-dark: #000000;
JSON
{
  "hex": "#7a248c",
  "rgb": {
    "r": 122,
    "g": 36,
    "b": 140
  },
  "hsl": {
    "h": 289.615,
    "s": 59.091,
    "l": 34.51
  },
  "oklch": {
    "l": 0.44034,
    "c": 0.17345,
    "h": 320.1
  },
  "luminance": 0.07293
}

Semantic roles & 50–950 ramp

primary
#7A248C
secondary
#65B854
accent
#E24661
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7A248C

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

Preview Lab → · Contrast checker → · Palette generator →

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