#7C2187#7C2187

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

Color values

HEX#7C2187
RGBrgb(124, 33, 135)
HSLhsl(294, 61%, 33%)
HSVhsv(294, 76%, 53%)
CMYKcmyk(8.1%, 75.6%, 0%, 47.1%)
CIE-LABlab(32.09, 51.85, -37.22)
CIE-LCHlch(32.09, 63.83, 324.33°)
OKLaboklab(43.73% 0.1388 -0.1039)
OKLCHoklch(43.73% 0.173 323.2)
XYZxyz(13.2288, 7.1229, 23.5950)
Luminance0.0712 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2187 #2C8721
analogous
#492187 #7C2187 #87215F
triadic
#7C2187 #877C21 #21877C
tetradic
#7C2187 #874921 #2C8721 #215F87
square
#7C2187 #874921 #2C8721 #215F87
split-complementary
#7C2187 #5F8721 #218749
monochromatic
#220925 #4F1556 #7C2187 #A92DB8 #C54FD4

Accessibility & contrast

On white

8.66
#7C2187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C2187
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2187#FFFFFF#000000##FFFFFF
##7C21871.008.662.428.66
#FFFFFF8.661.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458A
Deuteranopia (green-blind)
#324F85
Tritanopia (blue-blind)
#7E3452
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7c2187;
/* rgb */ color: rgb(124, 33, 135);
/* oklch */ color: oklch(43.7% 0.173 323.2);
Tailwind
colors: {
  custom: {
    50: '#a567aa',
    500: '#7c2187',
    950: '#000000',
  },
}
SCSS
$custom: #7c2187;
$custom-light: #a567aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2187",
  "rgb": {
    "r": 124,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 293.529,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.43725,
    "c": 0.17338,
    "h": 323.2
  },
  "luminance": 0.07122
}

Semantic roles & 50–950 ramp

primary
#7C2187
secondary
#58B74D
accent
#E44455
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7C2187

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

Preview Lab → · Contrast checker → · Palette generator →

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