#7C1E8B#7C1E8B

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

Color values

HEX#7C1E8B
RGBrgb(124, 30, 139)
HSLhsl(292, 64%, 33%)
HSVhsv(292, 78%, 55%)
CMYKcmyk(10.8%, 78.4%, 0%, 45.5%)
CIE-LABlab(31.98, 53.63, -39.87)
CIE-LCHlch(31.98, 66.83, 323.38°)
OKLaboklab(43.74% 0.1412 -0.1116)
OKLCHoklch(43.74% 0.18 321.7)
XYZxyz(13.4361, 7.0785, 25.0797)
Luminance0.0708 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1E8B #2D8B1E
analogous
#451E8B #7C1E8B #8B1E63
triadic
#7C1E8B #8B7C1E #1E8B7C
tetradic
#7C1E8B #8B451E #2D8B1E #1E638B
square
#7C1E8B #8B451E #2D8B1E #1E638B
split-complementary
#7C1E8B #638B1E #1E8B45
monochromatic
#220826 #4F1359 #7C1E8B #A929BD #C54BD8

Accessibility & contrast

On white

8.69
#7C1E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#7C1E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1E8B
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1E8B#FFFFFF#000000##FFFFFF
##7C1E8B1.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c1e8b;
/* rgb */ color: rgb(124, 30, 139);
/* oklch */ color: oklch(43.7% 0.180 321.7);
Tailwind
colors: {
  custom: {
    50: '#a665ad',
    500: '#7c1e8b',
    950: '#000000',
  },
}
SCSS
$custom: #7c1e8b;
$custom-light: #a665ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1e8b",
  "rgb": {
    "r": 124,
    "g": 30,
    "b": 139
  },
  "hsl": {
    "h": 291.743,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.43737,
    "c": 0.18002,
    "h": 321.7
  },
  "luminance": 0.07078
}

Semantic roles & 50–950 ramp

primary
#7C1E8B
secondary
#5ABB4A
accent
#E74057
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7C1E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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