#7C288C#7C288C

#7C288C is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.7% C 0.169 H 320.8°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#7C288C
RGBrgb(124, 40, 140)
HSLhsl(290, 56%, 35%)
HSVhsv(290, 71%, 55%)
CMYKcmyk(11.4%, 71.4%, 0%, 45.1%)
CIE-LABlab(33.34, 50.13, -38.31)
CIE-LCHlch(33.34, 63.09, 322.62°)
OKLaboklab(44.73% 0.1313 -0.1071)
OKLCHoklch(44.73% 0.169 320.8)
XYZxyz(13.8040, 7.6968, 25.5644)
Luminance0.0770 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C288C #388C28
analogous
#4A288C #7C288C #8C286A
triadic
#7C288C #8C7C28 #288C7C
tetradic
#7C288C #8C4A28 #388C28 #286A8C
square
#7C288C #8C4A28 #388C28 #286A8C
split-complementary
#7C288C #6A8C28 #288C4A
monochromatic
#280D2D #521A5C #7C288C #A636BC #BE5ED1

Accessibility & contrast

On white

8.27
#7C288C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7C288C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C288C
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C288C#FFFFFF#000000##FFFFFF
##7C288C1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00498F
Deuteranopia (green-blind)
#33518A
Tritanopia (blue-blind)
#7D3A57
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7c288c;
/* rgb */ color: rgb(124, 40, 140);
/* oklch */ color: oklch(44.7% 0.169 320.8);
Tailwind
colors: {
  custom: {
    50: '#a56aae',
    500: '#7c288c',
    950: '#000000',
  },
}
SCSS
$custom: #7c288c;
$custom-light: #a56aae;
$custom-dark: #000000;
JSON
{
  "hex": "#7c288c",
  "rgb": {
    "r": 124,
    "g": 40,
    "b": 140
  },
  "hsl": {
    "h": 290.4,
    "s": 55.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.44725,
    "c": 0.16945,
    "h": 320.8
  },
  "luminance": 0.07696
}

Semantic roles & 50–950 ramp

primary
#7C288C
secondary
#68B65A
accent
#DF4961
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C288C

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

Preview Lab → · Contrast checker → · Palette generator →

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