#7C2277#7C2277

#7C2277 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 42.8% C 0.159 H 330.3°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#7C2277
RGBrgb(124, 34, 119)
HSLhsl(303, 57%, 31%)
HSVhsv(303, 73%, 49%)
CMYKcmyk(0%, 72.6%, 4%, 51.4%)
CIE-LABlab(31.26, 48.61, -28.51)
CIE-LCHlch(31.26, 56.36, 329.61°)
OKLaboklab(42.83% 0.1379 -0.0786)
OKLCHoklch(42.83% 0.159 330.3)
XYZxyz(12.2139, 6.7620, 18.1111)
Luminance0.0676 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2277 #227C27
analogous
#54227C #7C2277 #7C224A
triadic
#7C2277 #777C22 #22777C
tetradic
#7C2277 #7C5422 #227C27 #224A7C
square
#7C2277 #7C5422 #227C27 #224A7C
split-complementary
#7C2277 #4A7C22 #227C54
monochromatic
#1C081B #4C1549 #7C2277 #AC2FA5 #CE4BC6

Accessibility & contrast

On white

8.93
#7C2277 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#7C2277 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2277
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2277#FFFFFF#000000##FFFFFF
##7C22771.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194279
Deuteranopia (green-blind)
#3C4E75
Tritanopia (blue-blind)
#812D4A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7c2277;
/* rgb */ color: rgb(124, 34, 119);
/* oklch */ color: oklch(42.8% 0.159 330.3);
Tailwind
colors: {
  custom: {
    50: '#a5669e',
    500: '#7c2277',
    950: '#000000',
  },
}
SCSS
$custom: #7c2277;
$custom-light: #a5669e;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2277",
  "rgb": {
    "r": 124,
    "g": 34,
    "b": 119
  },
  "hsl": {
    "h": 303.333,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.42825,
    "c": 0.15871,
    "h": 330.3
  },
  "luminance": 0.06761
}

Semantic roles & 50–950 ramp

primary
#7C2277
secondary
#4BAF51
accent
#E05048
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7C2277

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

Preview Lab → · Contrast checker → · Palette generator →

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