#7C1881#7C1881

#7C1881 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.6% C 0.178 H 326.0°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#7C1881
RGBrgb(124, 24, 129)
HSLhsl(297, 69%, 30%)
HSVhsv(297, 81%, 51%)
CMYKcmyk(3.9%, 81.4%, 0%, 49.4%)
CIE-LABlab(30.70, 53.67, -35.70)
CIE-LCHlch(30.70, 64.45, 326.37°)
OKLaboklab(42.62% 0.1471 -0.0994)
OKLCHoklch(42.62% 0.178 326)
XYZxyz(12.6010, 6.5242, 21.3602)
Luminance0.0652 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1881 #1D8118
analogous
#481881 #7C1881 #811851
triadic
#7C1881 #817C18 #18817C
tetradic
#7C1881 #814818 #1D8118 #185181
square
#7C1881 #814818 #1D8118 #185181
split-complementary
#7C1881 #518118 #188148
monochromatic
#19051A #4A0E4D #7C1881 #AE22B5 #D339DA

Accessibility & contrast

On white

9.11
#7C1881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#7C1881 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1881
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1881#FFFFFF#000000##FFFFFF
##7C18811.009.112.309.11
#FFFFFF9.111.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004084
Deuteranopia (green-blind)
#324C7F
Tritanopia (blue-blind)
#7F2C4D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7c1881;
/* rgb */ color: rgb(124, 24, 129);
/* oklch */ color: oklch(42.6% 0.178 326.0);
Tailwind
colors: {
  custom: {
    50: '#a663a6',
    500: '#7c1881',
    950: '#000000',
  },
}
SCSS
$custom: #7c1881;
$custom-light: #a663a6;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1881",
  "rgb": {
    "r": 124,
    "g": 24,
    "b": 129
  },
  "hsl": {
    "h": 297.143,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.42617,
    "c": 0.17757,
    "h": 326
  },
  "luminance": 0.06523
}

Semantic roles & 50–950 ramp

primary
#7C1881
secondary
#45B540
accent
#EB3C45
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C1881

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

Preview Lab → · Contrast checker → · Palette generator →

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