#7C1F84#7C1F84

#7C1F84 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.4% C 0.173 H 324.5°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#7C1F84
RGBrgb(124, 31, 132)
HSLhsl(295, 62%, 32%)
HSVhsv(295, 77%, 52%)
CMYKcmyk(6.1%, 76.5%, 0%, 48.2%)
CIE-LABlab(31.65, 52.00, -36.05)
CIE-LCHlch(31.65, 63.28, 325.27°)
OKLaboklab(43.36% 0.1409 -0.1005)
OKLCHoklch(43.36% 0.173 324.5)
XYZxyz(12.9667, 6.9318, 22.4803)
Luminance0.0693 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1F84 #27841F
analogous
#4A1F84 #7C1F84 #841F59
triadic
#7C1F84 #847C1F #1F847C
tetradic
#7C1F84 #844A1F #27841F #1F5984
square
#7C1F84 #844A1F #27841F #1F5984
split-complementary
#7C1F84 #59841F #1F844A
monochromatic
#1F0821 #4D1352 #7C1F84 #AB2BB6 #C949D4

Accessibility & contrast

On white

8.80
#7C1F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#7C1F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1F84
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1F84#FFFFFF#000000##FFFFFF
##7C1F841.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004387
Deuteranopia (green-blind)
#334E82
Tritanopia (blue-blind)
#7F3150
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7c1f84;
/* rgb */ color: rgb(124, 31, 132);
/* oklch */ color: oklch(43.4% 0.173 324.5);
Tailwind
colors: {
  custom: {
    50: '#a566a8',
    500: '#7c1f84',
    950: '#000000',
  },
}
SCSS
$custom: #7c1f84;
$custom-light: #a566a8;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1f84",
  "rgb": {
    "r": 124,
    "g": 31,
    "b": 132
  },
  "hsl": {
    "h": 295.248,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.43355,
    "c": 0.17303,
    "h": 324.5
  },
  "luminance": 0.06931
}

Semantic roles & 50–950 ramp

primary
#7C1F84
secondary
#51B748
accent
#E54350
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7C1F84

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

Preview Lab → · Contrast checker → · Palette generator →

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