#7C2186#7C2186

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

Color values

HEX#7C2186
RGBrgb(124, 33, 134)
HSLhsl(294, 60%, 33%)
HSVhsv(294, 75%, 53%)
CMYKcmyk(7.5%, 75.4%, 0%, 47.5%)
CIE-LABlab(32.02, 51.67, -36.70)
CIE-LCHlch(32.02, 63.38, 324.61°)
OKLaboklab(43.66% 0.1388 -0.1024)
OKLCHoklch(43.66% 0.173 323.6)
XYZxyz(13.1587, 7.0948, 23.2260)
Luminance0.0709 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2186 #2B8621
analogous
#492186 #7C2186 #86215E
triadic
#7C2186 #867C21 #21867C
tetradic
#7C2186 #864921 #2B8621 #215E86
square
#7C2186 #864921 #2B8621 #215E86
split-complementary
#7C2186 #5E8621 #218649
monochromatic
#210924 #4F1555 #7C2186 #A92DB7 #C64ED3

Accessibility & contrast

On white

8.68
#7C2186 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C2186
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2186#FFFFFF#000000##FFFFFF
##7C21861.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004589
Deuteranopia (green-blind)
#334F84
Tritanopia (blue-blind)
#7E3352
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7c2186;
/* rgb */ color: rgb(124, 33, 134);
/* oklch */ color: oklch(43.7% 0.173 323.6);
Tailwind
colors: {
  custom: {
    50: '#a566aa',
    500: '#7c2186',
    950: '#000000',
  },
}
SCSS
$custom: #7c2186;
$custom-light: #a566aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2186",
  "rgb": {
    "r": 124,
    "g": 33,
    "b": 134
  },
  "hsl": {
    "h": 294.059,
    "s": 60.479,
    "l": 32.745
  },
  "oklch": {
    "l": 0.4366,
    "c": 0.17251,
    "h": 323.6
  },
  "luminance": 0.07094
}

Semantic roles & 50–950 ramp

primary
#7C2186
secondary
#57B74C
accent
#E44454
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7C2186

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

Preview Lab → · Contrast checker → · Palette generator →

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