#7C288E#7C288E

#7C288E is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.9% C 0.171 H 320.0°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#7C288E
RGBrgb(124, 40, 142)
HSLhsl(289, 56%, 36%)
HSVhsv(289, 72%, 56%)
CMYKcmyk(12.7%, 71.8%, 0%, 44.3%)
CIE-LABlab(33.47, 50.53, -39.34)
CIE-LCHlch(33.47, 64.03, 322.10°)
OKLaboklab(44.86% 0.1312 -0.1101)
OKLCHoklch(44.86% 0.171 320)
XYZxyz(13.9529, 7.7564, 26.3481)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C288E #3A8E28
analogous
#49288E #7C288E #8E286D
triadic
#7C288E #8E7C28 #288E7C
tetradic
#7C288E #8E4928 #3A8E28 #286D8E
square
#7C288E #8E4928 #3A8E28 #286D8E
split-complementary
#7C288E #6D8E28 #288E49
monochromatic
#290D2F #521B5E #7C288E #A635BE #BD5FD2

Accessibility & contrast

On white

8.23
#7C288E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C288E
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C288E#FFFFFF#000000##FFFFFF
##7C288E1.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004991
Deuteranopia (green-blind)
#31528C
Tritanopia (blue-blind)
#7C3B58
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7c288e;
/* rgb */ color: rgb(124, 40, 142);
/* oklch */ color: oklch(44.9% 0.171 320.0);
Tailwind
colors: {
  custom: {
    50: '#a56ab0',
    500: '#7c288e',
    950: '#000000',
  },
}
SCSS
$custom: #7c288e;
$custom-light: #a56ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c288e",
  "rgb": {
    "r": 124,
    "g": 40,
    "b": 142
  },
  "hsl": {
    "h": 289.412,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.44856,
    "c": 0.17129,
    "h": 320
  },
  "luminance": 0.07756
}

Semantic roles & 50–950 ramp

primary
#7C288E
secondary
#6BB75B
accent
#DF4863
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C288E

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

Preview Lab → · Contrast checker → · Palette generator →

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