#7C2297#7C2297

#7C2297 is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.9% C 0.186 H 317.0°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#7C2297
RGBrgb(124, 34, 151)
HSLhsl(286, 63%, 36%)
HSVhsv(286, 77%, 59%)
CMYKcmyk(17.9%, 77.5%, 0%, 40.8%)
CIE-LABlab(33.27, 54.59, -45.17)
CIE-LCHlch(33.27, 70.86, 320.39°)
OKLaboklab(44.91% 0.1362 -0.1272)
OKLCHoklch(44.91% 0.186 317)
XYZxyz(14.4693, 7.6641, 29.9893)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2297 #3D9722
analogous
#422297 #7C2297 #972278
triadic
#7C2297 #977C22 #22977C
tetradic
#7C2297 #974222 #3D9722 #227897
square
#7C2297 #974222 #3D9722 #227897
split-complementary
#7C2297 #789722 #229742
monochromatic
#2A0C33 #531765 #7C2297 #A52DC9 #BC5ADA

Accessibility & contrast

On white

8.29
#7C2297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7C2297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2297
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2297#FFFFFF#000000##FFFFFF
##7C22971.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499A
Deuteranopia (green-blind)
#245194
Tritanopia (blue-blind)
#7B3C5C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7c2297;
/* rgb */ color: rgb(124, 34, 151);
/* oklch */ color: oklch(44.9% 0.186 317.0);
Tailwind
colors: {
  custom: {
    50: '#a668b6',
    500: '#7c2297',
    950: '#000000',
  },
}
SCSS
$custom: #7c2297;
$custom-light: #a668b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2297",
  "rgb": {
    "r": 124,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 286.154,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.44908,
    "c": 0.18636,
    "h": 317
  },
  "luminance": 0.07664
}

Semantic roles & 50–950 ramp

primary
#7C2297
secondary
#6FBE57
accent
#E64268
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7C2297

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

Preview Lab → · Contrast checker → · Palette generator →

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