#7C1F87#7C1F87

#7C1F87 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.6% C 0.176 H 323.3°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#7C1F87
RGBrgb(124, 31, 135)
HSLhsl(294, 63%, 33%)
HSVhsv(294, 77%, 53%)
CMYKcmyk(8.1%, 77%, 0%, 47.1%)
CIE-LABlab(31.84, 52.55, -37.61)
CIE-LCHlch(31.84, 64.63, 324.41°)
OKLaboklab(43.55% 0.1407 -0.105)
OKLCHoklch(43.55% 0.176 323.3)
XYZxyz(13.1749, 7.0151, 23.5771)
Luminance0.0701 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1F87 #2A871F
analogous
#481F87 #7C1F87 #871F5E
triadic
#7C1F87 #877C1F #1F877C
tetradic
#7C1F87 #87481F #2A871F #1F5E87
square
#7C1F87 #87481F #2A871F #1F5E87
split-complementary
#7C1F87 #5E871F #1F8748
monochromatic
#210823 #4E1455 #7C1F87 #AA2AB9 #C74BD6

Accessibility & contrast

On white

8.74
#7C1F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#7C1F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1F87
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1F87#FFFFFF#000000##FFFFFF
##7C1F871.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448A
Deuteranopia (green-blind)
#314E85
Tritanopia (blue-blind)
#7E3352
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7c1f87;
/* rgb */ color: rgb(124, 31, 135);
/* oklch */ color: oklch(43.6% 0.176 323.3);
Tailwind
colors: {
  custom: {
    50: '#a566aa',
    500: '#7c1f87',
    950: '#000000',
  },
}
SCSS
$custom: #7c1f87;
$custom-light: #a566aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1f87",
  "rgb": {
    "r": 124,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 293.654,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.43551,
    "c": 0.17557,
    "h": 323.3
  },
  "luminance": 0.07014
}

Semantic roles & 50–950 ramp

primary
#7C1F87
secondary
#55B84A
accent
#E64253
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7C1F87

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

Preview Lab → · Contrast checker → · Palette generator →

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