#7C1886#7C1886

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

Color values

HEX#7C1886
RGBrgb(124, 24, 134)
HSLhsl(295, 70%, 31%)
HSVhsv(295, 82%, 53%)
CMYKcmyk(7.5%, 82.1%, 0%, 47.5%)
CIE-LABlab(31.02, 54.55, -38.31)
CIE-LCHlch(31.02, 66.66, 324.92°)
OKLaboklab(42.95% 0.1467 -0.107)
OKLCHoklch(42.95% 0.182 323.9)
XYZxyz(12.9415, 6.6604, 23.1536)
Luminance0.0666 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1886 #228618
analogous
#451886 #7C1886 #861859
triadic
#7C1886 #867C18 #18867C
tetradic
#7C1886 #864518 #228618 #185986
square
#7C1886 #864518 #228618 #185986
split-complementary
#7C1886 #598618 #188645
monochromatic
#1C051E #4C0F52 #7C1886 #AC21BA #CE3CDC

Accessibility & contrast

On white

9.01
#7C1886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#7C1886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1886
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1886#FFFFFF#000000##FFFFFF
##7C18861.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004289
Deuteranopia (green-blind)
#2E4D84
Tritanopia (blue-blind)
#7E2F50
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7c1886;
/* rgb */ color: rgb(124, 24, 134);
/* oklch */ color: oklch(42.9% 0.182 323.9);
Tailwind
colors: {
  custom: {
    50: '#a663aa',
    500: '#7c1886',
    950: '#000000',
  },
}
SCSS
$custom: #7c1886;
$custom-light: #a663aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1886",
  "rgb": {
    "r": 124,
    "g": 24,
    "b": 134
  },
  "hsl": {
    "h": 294.545,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.42949,
    "c": 0.1816,
    "h": 323.9
  },
  "luminance": 0.0666
}

Semantic roles & 50–950 ramp

primary
#7C1886
secondary
#4BBA40
accent
#EC3B4B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7C1886

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

Preview Lab → · Contrast checker → · Palette generator →

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