#7C1B8B#7C1B8B

#7C1B8B is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.5% C 0.183 H 321.8°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#7C1B8B
RGBrgb(124, 27, 139)
HSLhsl(292, 67%, 33%)
HSVhsv(292, 81%, 55%)
CMYKcmyk(10.8%, 80.6%, 0%, 45.5%)
CIE-LABlab(31.66, 54.58, -40.39)
CIE-LCHlch(31.66, 67.90, 323.50°)
OKLaboklab(43.5% 0.1438 -0.1131)
OKLCHoklch(43.5% 0.183 321.8)
XYZxyz(13.3638, 6.9338, 25.0555)
Luminance0.0693 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1B8B #2A8B1B
analogous
#441B8B #7C1B8B #8B1B62
triadic
#7C1B8B #8B7C1B #1B8B7C
tetradic
#7C1B8B #8B441B #2A8B1B #1B628B
square
#7C1B8B #8B441B #2A8B1B #1B628B
split-complementary
#7C1B8B #628B1B #1B8B44
monochromatic
#210725 #4E1158 #7C1B8B #AA25BE #C745DB

Accessibility & contrast

On white

8.80
#7C1B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#7C1B8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1B8B
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1B8B#FFFFFF#000000##FFFFFF
##7C1B8B1.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448E
Deuteranopia (green-blind)
#2B4E89
Tritanopia (blue-blind)
#7D3353
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7c1b8b;
/* rgb */ color: rgb(124, 27, 139);
/* oklch */ color: oklch(43.5% 0.183 321.8);
Tailwind
colors: {
  custom: {
    50: '#a664ad',
    500: '#7c1b8b',
    950: '#000000',
  },
}
SCSS
$custom: #7c1b8b;
$custom-light: #a664ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1b8b",
  "rgb": {
    "r": 124,
    "g": 27,
    "b": 139
  },
  "hsl": {
    "h": 291.964,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.43504,
    "c": 0.18297,
    "h": 321.8
  },
  "luminance": 0.06933
}

Semantic roles & 50–950 ramp

primary
#7C1B8B
secondary
#55BC45
accent
#EA3D55
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7C1B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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