#7C1B82#7C1B82

#7C1B82 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.9% C 0.176 H 325.5°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#7C1B82
RGBrgb(124, 27, 130)
HSLhsl(297, 66%, 31%)
HSVhsv(297, 79%, 51%)
CMYKcmyk(4.6%, 79.2%, 0%, 49%)
CIE-LABlab(31.07, 52.95, -35.73)
CIE-LCHlch(31.07, 63.88, 325.99°)
OKLaboklab(42.9% 0.1446 -0.0995)
OKLCHoklch(42.9% 0.176 325.5)
XYZxyz(12.7331, 6.6815, 21.7338)
Luminance0.0668 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1B82 #21821B
analogous
#481B82 #7C1B82 #821B54
triadic
#7C1B82 #827C1B #1B827C
tetradic
#7C1B82 #82481B #21821B #1B5482
square
#7C1B82 #82481B #21821B #1B5482
split-complementary
#7C1B82 #54821B #1B8248
monochromatic
#1B061D #4C104F #7C1B82 #AC26B5 #CF40D7

Accessibility & contrast

On white

8.99
#7C1B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#7C1B82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1B82
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1B82#FFFFFF#000000##FFFFFF
##7C1B821.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004285
Deuteranopia (green-blind)
#334D80
Tritanopia (blue-blind)
#7F2E4E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7c1b82;
/* rgb */ color: rgb(124, 27, 130);
/* oklch */ color: oklch(42.9% 0.176 325.5);
Tailwind
colors: {
  custom: {
    50: '#a564a7',
    500: '#7c1b82',
    950: '#000000',
  },
}
SCSS
$custom: #7c1b82;
$custom-light: #a564a7;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1b82",
  "rgb": {
    "r": 124,
    "g": 27,
    "b": 130
  },
  "hsl": {
    "h": 296.505,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42902,
    "c": 0.17552,
    "h": 325.5
  },
  "luminance": 0.06681
}

Semantic roles & 50–950 ramp

primary
#7C1B82
secondary
#4AB643
accent
#E93F49
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C1B82

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

Preview Lab → · Contrast checker → · Palette generator →

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