#7C288A#7C288A

#7C288A is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.6% C 0.168 H 321.6°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#7C288A
RGBrgb(124, 40, 138)
HSLhsl(291, 55%, 35%)
HSVhsv(291, 71%, 54%)
CMYKcmyk(10.1%, 71%, 0%, 45.9%)
CIE-LABlab(33.22, 49.74, -37.27)
CIE-LCHlch(33.22, 62.16, 323.15°)
OKLaboklab(44.6% 0.1314 -0.1041)
OKLCHoklch(44.6% 0.168 321.6)
XYZxyz(13.6579, 7.6384, 24.7948)
Luminance0.0764 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C288A #368A28
analogous
#4B288A #7C288A #8A2867
triadic
#7C288A #8A7C28 #288A7C
tetradic
#7C288A #8A4B28 #368A28 #28678A
square
#7C288A #8A4B28 #368A28 #28678A
split-complementary
#7C288A #678A28 #288A4B
monochromatic
#270C2B #511A5B #7C288A #A736B9 #BF5DD0

Accessibility & contrast

On white

8.31
#7C288A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C288A
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C288A#FFFFFF#000000##FFFFFF
##7C288A1.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03488D
Deuteranopia (green-blind)
#345188
Tritanopia (blue-blind)
#7D3956
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7c288a;
/* rgb */ color: rgb(124, 40, 138);
/* oklch */ color: oklch(44.6% 0.168 321.6);
Tailwind
colors: {
  custom: {
    50: '#a56aad',
    500: '#7c288a',
    950: '#000000',
  },
}
SCSS
$custom: #7c288a;
$custom-light: #a56aad;
$custom-dark: #000000;
JSON
{
  "hex": "#7c288a",
  "rgb": {
    "r": 124,
    "g": 40,
    "b": 138
  },
  "hsl": {
    "h": 291.429,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.44595,
    "c": 0.16761,
    "h": 321.6
  },
  "luminance": 0.07638
}

Semantic roles & 50–950 ramp

primary
#7C288A
secondary
#66B559
accent
#DE495F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C288A

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

Preview Lab → · Contrast checker → · Palette generator →

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