#7C287D#7C287D

#7C287D is a dark, vivid purple. Relative luminance 0.073; OKLCH L 43.8% C 0.156 H 327.4°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#7C287D
RGBrgb(124, 40, 125)
HSLhsl(299, 52%, 32%)
HSVhsv(299, 68%, 49%)
CMYKcmyk(0.8%, 68%, 0%, 51%)
CIE-LABlab(32.45, 47.29, -30.41)
CIE-LCHlch(32.45, 56.22, 327.25°)
OKLaboklab(43.79% 0.1313 -0.0841)
OKLCHoklch(43.79% 0.156 327.4)
XYZxyz(12.7724, 7.2842, 20.1313)
Luminance0.0728 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C287D #297D28
analogous
#51287D #7C287D #7D2854
triadic
#7C287D #7D7C28 #287D7C
tetradic
#7C287D #7D5128 #297D28 #28547D
square
#7C287D #7D5128 #297D28 #28547D
split-complementary
#7C287D #547D28 #287D51
monochromatic
#200A20 #4E194F #7C287D #AA37AB #C856C9

Accessibility & contrast

On white

8.55
#7C287D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#7C287D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C287D
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C287D#FFFFFF#000000##FFFFFF
##7C287D1.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B457F
Deuteranopia (green-blind)
#3C507B
Tritanopia (blue-blind)
#80344F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7c287d;
/* rgb */ color: rgb(124, 40, 125);
/* oklch */ color: oklch(43.8% 0.156 327.4);
Tailwind
colors: {
  custom: {
    50: '#a569a3',
    500: '#7c287d',
    950: '#000000',
  },
}
SCSS
$custom: #7c287d;
$custom-light: #a569a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7c287d",
  "rgb": {
    "r": 124,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 299.294,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.4379,
    "c": 0.15598,
    "h": 327.4
  },
  "luminance": 0.07283
}

Semantic roles & 50–950 ramp

primary
#7C287D
secondary
#54AE53
accent
#DB4D4E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7C287D

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

Preview Lab → · Contrast checker → · Palette generator →

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