#7C288B#7C288B

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

Color values

HEX#7C288B
RGBrgb(124, 40, 139)
HSLhsl(291, 55%, 35%)
HSVhsv(291, 71%, 55%)
CMYKcmyk(10.8%, 71.2%, 0%, 45.5%)
CIE-LABlab(33.28, 49.94, -37.79)
CIE-LCHlch(33.28, 62.63, 322.88°)
OKLaboklab(44.66% 0.1313 -0.1056)
OKLCHoklch(44.66% 0.169 321.2)
XYZxyz(13.7306, 7.6675, 25.1778)
Luminance0.0767 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C288B #378B28
analogous
#4A288B #7C288B #8B2868
triadic
#7C288B #8B7C28 #288B7C
tetradic
#7C288B #8B4A28 #378B28 #28688B
square
#7C288B #8B4A28 #378B28 #28688B
split-complementary
#7C288B #688B28 #288B4A
monochromatic
#270D2C #521A5B #7C288B #A636BB #BF5DD0

Accessibility & contrast

On white

8.29
#7C288B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7C288B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C288B
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C288B#FFFFFF#000000##FFFFFF
##7C288B1.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488E
Deuteranopia (green-blind)
#335189
Tritanopia (blue-blind)
#7D3A56
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7c288b;
/* rgb */ color: rgb(124, 40, 139);
/* oklch */ color: oklch(44.7% 0.169 321.2);
Tailwind
colors: {
  custom: {
    50: '#a56aad',
    500: '#7c288b',
    950: '#000000',
  },
}
SCSS
$custom: #7c288b;
$custom-light: #a56aad;
$custom-dark: #000000;
JSON
{
  "hex": "#7c288b",
  "rgb": {
    "r": 124,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 290.909,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.4466,
    "c": 0.16853,
    "h": 321.2
  },
  "luminance": 0.07667
}

Semantic roles & 50–950 ramp

primary
#7C288B
secondary
#67B659
accent
#DF4960
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C288B

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

Preview Lab → · Contrast checker → · Palette generator →

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