#7C2887#7C2887

#7C2887 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.4% C 0.165 H 322.9°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#7C2887
RGBrgb(124, 40, 135)
HSLhsl(293, 54%, 34%)
HSVhsv(293, 70%, 53%)
CMYKcmyk(8.1%, 70.4%, 0%, 47.1%)
CIE-LABlab(33.03, 49.16, -35.71)
CIE-LCHlch(33.03, 60.76, 324.01°)
OKLaboklab(44.4% 0.1314 -0.0995)
OKLCHoklch(44.4% 0.165 322.9)
XYZxyz(13.4437, 7.5527, 23.6667)
Luminance0.0755 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2887 #338728
analogous
#4D2887 #7C2887 #872863
triadic
#7C2887 #877C28 #28877C
tetradic
#7C2887 #874D28 #338728 #286387
square
#7C2887 #874D28 #338728 #286387
split-complementary
#7C2887 #638728 #28874D
monochromatic
#250C29 #511A58 #7C2887 #A736B6 #C15BCE

Accessibility & contrast

On white

8.37
#7C2887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#7C2887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2887
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2887#FFFFFF#000000##FFFFFF
##7C28871.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B478A
Deuteranopia (green-blind)
#365185
Tritanopia (blue-blind)
#7E3854
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7c2887;
/* rgb */ color: rgb(124, 40, 135);
/* oklch */ color: oklch(44.4% 0.165 322.9);
Tailwind
colors: {
  custom: {
    50: '#a56aaa',
    500: '#7c2887',
    950: '#000000',
  },
}
SCSS
$custom: #7c2887;
$custom-light: #a56aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2887",
  "rgb": {
    "r": 124,
    "g": 40,
    "b": 135
  },
  "hsl": {
    "h": 293.053,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.44403,
    "c": 0.16488,
    "h": 322.9
  },
  "luminance": 0.07552
}

Semantic roles & 50–950 ramp

primary
#7C2887
secondary
#62B457
accent
#DE4A5B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C2887

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

Preview Lab → · Contrast checker → · Palette generator →

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