#7C288F#7C288F

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

Color values

HEX#7C288F
RGBrgb(124, 40, 143)
HSLhsl(289, 56%, 36%)
HSVhsv(289, 72%, 56%)
CMYKcmyk(13.3%, 72%, 0%, 43.9%)
CIE-LABlab(33.53, 50.73, -39.85)
CIE-LCHlch(33.53, 64.51, 321.85°)
OKLaboklab(44.92% 0.1311 -0.1116)
OKLCHoklch(44.92% 0.172 319.6)
XYZxyz(14.0283, 7.7865, 26.7453)
Luminance0.0779 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C288F #3B8F28
analogous
#48288F #7C288F #8F286E
triadic
#7C288F #8F7C28 #288F7C
tetradic
#7C288F #8F4828 #3B8F28 #286E8F
square
#7C288F #8F4828 #3B8F28 #286E8F
split-complementary
#7C288F #6E8F28 #288F48
monochromatic
#290D2F #531B5F #7C288F #A535BF #BD5FD2

Accessibility & contrast

On white

8.21
#7C288F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7C288F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C288F
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C288F#FFFFFF#000000##FFFFFF
##7C288F1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004992
Deuteranopia (green-blind)
#30528D
Tritanopia (blue-blind)
#7C3C59
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7c288f;
/* rgb */ color: rgb(124, 40, 143);
/* oklch */ color: oklch(44.9% 0.172 319.6);
Tailwind
colors: {
  custom: {
    50: '#a56ab0',
    500: '#7c288f',
    950: '#000000',
  },
}
SCSS
$custom: #7c288f;
$custom-light: #a56ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c288f",
  "rgb": {
    "r": 124,
    "g": 40,
    "b": 143
  },
  "hsl": {
    "h": 288.932,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.44923,
    "c": 0.17221,
    "h": 319.6
  },
  "luminance": 0.07786
}

Semantic roles & 50–950 ramp

primary
#7C288F
secondary
#6CB85B
accent
#E04864
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C288F

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

Preview Lab → · Contrast checker → · Palette generator →

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