#7C2987#7C2987

#7C2987 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.5% C 0.164 H 322.8°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#7C2987
RGBrgb(124, 41, 135)
HSLhsl(293, 53%, 35%)
HSVhsv(293, 70%, 53%)
CMYKcmyk(8.1%, 69.6%, 0%, 47.1%)
CIE-LABlab(33.18, 48.75, -35.48)
CIE-LCHlch(33.18, 60.29, 323.96°)
OKLaboklab(44.51% 0.1303 -0.0989)
OKLCHoklch(44.51% 0.164 322.8)
XYZxyz(13.4779, 7.6210, 23.6781)
Luminance0.0762 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2987 #348729
analogous
#4D2987 #7C2987 #872963
triadic
#7C2987 #877C29 #29877C
tetradic
#7C2987 #874D29 #348729 #296387
square
#7C2987 #874D29 #348729 #296387
split-complementary
#7C2987 #638729 #29874D
monochromatic
#260C29 #511B58 #7C2987 #A737B6 #C05DCE

Accessibility & contrast

On white

8.32
#7C2987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#7C2987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2987
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2987#FFFFFF#000000##FFFFFF
##7C29871.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E488A
Deuteranopia (green-blind)
#375185
Tritanopia (blue-blind)
#7E3955
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7c2987;
/* rgb */ color: rgb(124, 41, 135);
/* oklch */ color: oklch(44.5% 0.164 322.8);
Tailwind
colors: {
  custom: {
    50: '#a56aaa',
    500: '#7c2987',
    950: '#000000',
  },
}
SCSS
$custom: #7c2987;
$custom-light: #a56aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2987",
  "rgb": {
    "r": 124,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 292.979,
    "s": 53.409,
    "l": 34.51
  },
  "oklch": {
    "l": 0.44509,
    "c": 0.16358,
    "h": 322.8
  },
  "luminance": 0.0762
}

Semantic roles & 50–950 ramp

primary
#7C2987
secondary
#63B359
accent
#DD4B5C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C2987

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

Preview Lab → · Contrast checker → · Palette generator →

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