#7C2188#7C2188

#7C2188 is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.8% C 0.174 H 322.8°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#7C2188
RGBrgb(124, 33, 136)
HSLhsl(293, 61%, 33%)
HSVhsv(293, 76%, 53%)
CMYKcmyk(8.8%, 75.7%, 0%, 46.7%)
CIE-LABlab(32.15, 52.04, -37.74)
CIE-LCHlch(32.15, 64.29, 324.05°)
OKLaboklab(43.79% 0.1387 -0.1054)
OKLCHoklch(43.79% 0.174 322.8)
XYZxyz(13.2995, 7.1512, 23.9676)
Luminance0.0715 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2188 #2D8821
analogous
#482188 #7C2188 #882160
triadic
#7C2188 #887C21 #21887C
tetradic
#7C2188 #884821 #2D8821 #216088
square
#7C2188 #884821 #2D8821 #216088
split-complementary
#7C2188 #608821 #218848
monochromatic
#220925 #4F1557 #7C2188 #A92DB9 #C54FD4

Accessibility & contrast

On white

8.64
#7C2188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#7C2188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2188
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2188#FFFFFF#000000##FFFFFF
##7C21881.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458B
Deuteranopia (green-blind)
#314F86
Tritanopia (blue-blind)
#7E3453
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7c2188;
/* rgb */ color: rgb(124, 33, 136);
/* oklch */ color: oklch(43.8% 0.174 322.8);
Tailwind
colors: {
  custom: {
    50: '#a567ab',
    500: '#7c2188',
    950: '#000000',
  },
}
SCSS
$custom: #7c2188;
$custom-light: #a567ab;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2188",
  "rgb": {
    "r": 124,
    "g": 33,
    "b": 136
  },
  "hsl": {
    "h": 293.01,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.43791,
    "c": 0.17424,
    "h": 322.8
  },
  "luminance": 0.0715
}

Semantic roles & 50–950 ramp

primary
#7C2188
secondary
#5AB84D
accent
#E44456
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7C2188

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

Preview Lab → · Contrast checker → · Palette generator →

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