#7C1D8B#7C1D8B

#7C1D8B is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.7% C 0.181 H 321.7°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#7C1D8B
RGBrgb(124, 29, 139)
HSLhsl(292, 65%, 33%)
HSVhsv(292, 79%, 55%)
CMYKcmyk(10.8%, 79.1%, 0%, 45.5%)
CIE-LABlab(31.87, 53.96, -40.05)
CIE-LCHlch(31.87, 67.19, 323.42°)
OKLaboklab(43.66% 0.1421 -0.1121)
OKLCHoklch(43.66% 0.181 321.7)
XYZxyz(13.4112, 7.0287, 25.0714)
Luminance0.0703 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1D8B #2C8B1D
analogous
#451D8B #7C1D8B #8B1D63
triadic
#7C1D8B #8B7C1D #1D8B7C
tetradic
#7C1D8B #8B451D #2C8B1D #1D638B
square
#7C1D8B #8B451D #2C8B1D #1D638B
split-complementary
#7C1D8B #638B1D #1D8B45
monochromatic
#220826 #4F1258 #7C1D8B #A928BE #C549D9

Accessibility & contrast

On white

8.73
#7C1D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#7C1D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1D8B
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1D8B#FFFFFF#000000##FFFFFF
##7C1D8B1.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448E
Deuteranopia (green-blind)
#2D4E89
Tritanopia (blue-blind)
#7D3454
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7c1d8b;
/* rgb */ color: rgb(124, 29, 139);
/* oklch */ color: oklch(43.7% 0.181 321.7);
Tailwind
colors: {
  custom: {
    50: '#a665ad',
    500: '#7c1d8b',
    950: '#000000',
  },
}
SCSS
$custom: #7c1d8b;
$custom-light: #a665ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1d8b",
  "rgb": {
    "r": 124,
    "g": 29,
    "b": 139
  },
  "hsl": {
    "h": 291.818,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.43657,
    "c": 0.18103,
    "h": 321.7
  },
  "luminance": 0.07028
}

Semantic roles & 50–950 ramp

primary
#7C1D8B
secondary
#58BB49
accent
#E83F56
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7C1D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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