#7C1B87#7C1B87

#7C1B87 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.2% C 0.180 H 323.4°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#7C1B87
RGBrgb(124, 27, 135)
HSLhsl(294, 67%, 32%)
HSVhsv(294, 80%, 53%)
CMYKcmyk(8.1%, 80%, 0%, 47.1%)
CIE-LABlab(31.39, 53.85, -38.33)
CIE-LCHlch(31.39, 66.10, 324.55°)
OKLaboklab(43.23% 0.1442 -0.1071)
OKLCHoklch(43.23% 0.18 323.4)
XYZxyz(13.0769, 6.8190, 23.5444)
Luminance0.0682 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1B87 #26871B
analogous
#461B87 #7C1B87 #871B5C
triadic
#7C1B87 #877C1B #1B877C
tetradic
#7C1B87 #87461B #26871B #1B5C87
square
#7C1B87 #87461B #26871B #1B5C87
split-complementary
#7C1B87 #5C871B #1B8746
monochromatic
#1E0721 #4D1154 #7C1B87 #AB25BA #CA43D9

Accessibility & contrast

On white

8.88
#7C1B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#7C1B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1B87
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1B87#FFFFFF#000000##FFFFFF
##7C1B871.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438A
Deuteranopia (green-blind)
#2F4E85
Tritanopia (blue-blind)
#7E3151
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7c1b87;
/* rgb */ color: rgb(124, 27, 135);
/* oklch */ color: oklch(43.2% 0.180 323.4);
Tailwind
colors: {
  custom: {
    50: '#a664aa',
    500: '#7c1b87',
    950: '#000000',
  },
}
SCSS
$custom: #7c1b87;
$custom-light: #a664aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1b87",
  "rgb": {
    "r": 124,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 293.889,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.43232,
    "c": 0.17964,
    "h": 323.4
  },
  "luminance": 0.06818
}

Semantic roles & 50–950 ramp

primary
#7C1B87
secondary
#50BA44
accent
#EA3E50
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7C1B87

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

Preview Lab → · Contrast checker → · Palette generator →

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