#7C288D#7C288D

#7C288D is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.8% C 0.170 H 320.4°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#7C288D
RGBrgb(124, 40, 141)
HSLhsl(290, 56%, 35%)
HSVhsv(290, 72%, 55%)
CMYKcmyk(12.1%, 71.6%, 0%, 44.7%)
CIE-LABlab(33.41, 50.33, -38.82)
CIE-LCHlch(33.41, 63.56, 322.35°)
OKLaboklab(44.79% 0.1312 -0.1086)
OKLCHoklch(44.79% 0.17 320.4)
XYZxyz(13.8781, 7.7265, 25.9545)
Luminance0.0773 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C288D #398D28
analogous
#49288D #7C288D #8D286B
triadic
#7C288D #8D7C28 #288D7C
tetradic
#7C288D #8D4928 #398D28 #286B8D
square
#7C288D #8D4928 #398D28 #286B8D
split-complementary
#7C288D #6B8D28 #288D49
monochromatic
#280D2E #521A5D #7C288D #A636BD #BE5ED1

Accessibility & contrast

On white

8.25
#7C288D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7C288D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C288D
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C288D#FFFFFF#000000##FFFFFF
##7C288D1.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004990
Deuteranopia (green-blind)
#32528B
Tritanopia (blue-blind)
#7D3B58
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7c288d;
/* rgb */ color: rgb(124, 40, 141);
/* oklch */ color: oklch(44.8% 0.170 320.4);
Tailwind
colors: {
  custom: {
    50: '#a56aaf',
    500: '#7c288d',
    950: '#000000',
  },
}
SCSS
$custom: #7c288d;
$custom-light: #a56aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#7c288d",
  "rgb": {
    "r": 124,
    "g": 40,
    "b": 141
  },
  "hsl": {
    "h": 289.901,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.4479,
    "c": 0.17036,
    "h": 320.4
  },
  "luminance": 0.07726
}

Semantic roles & 50–950 ramp

primary
#7C288D
secondary
#6AB75A
accent
#DF4962
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C288D

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

Preview Lab → · Contrast checker → · Palette generator →

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