#7C2274#7C2274

#7C2274 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.7% C 0.156 H 331.8°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#7C2274
RGBrgb(124, 34, 116)
HSLhsl(305, 57%, 31%)
HSVhsv(305, 73%, 49%)
CMYKcmyk(0%, 72.6%, 6.5%, 51.4%)
CIE-LABlab(31.09, 48.10, -26.87)
CIE-LCHlch(31.09, 55.10, 330.81°)
OKLaboklab(42.65% 0.1377 -0.0739)
OKLCHoklch(42.65% 0.156 331.8)
XYZxyz(12.0366, 6.6911, 17.1772)
Luminance0.0669 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2274 #227C2A
analogous
#57227C #7C2274 #7C2247
triadic
#7C2274 #747C22 #22747C
tetradic
#7C2274 #7C5722 #227C2A #22477C
square
#7C2274 #7C5722 #227C2A #22477C
split-complementary
#7C2274 #477C22 #227C57
monochromatic
#1C081A #4C1547 #7C2274 #AC2FA1 #CE4BC2

Accessibility & contrast

On white

8.98
#7C2274 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#7C2274 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2274
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2274#FFFFFF#000000##FFFFFF
##7C22741.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4176
Deuteranopia (green-blind)
#3E4E72
Tritanopia (blue-blind)
#812C48
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7c2274;
/* rgb */ color: rgb(124, 34, 116);
/* oklch */ color: oklch(42.7% 0.156 331.8);
Tailwind
colors: {
  custom: {
    50: '#a5669c',
    500: '#7c2274',
    950: '#000000',
  },
}
SCSS
$custom: #7c2274;
$custom-light: #a5669c;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2274",
  "rgb": {
    "r": 124,
    "g": 34,
    "b": 116
  },
  "hsl": {
    "h": 305.333,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.42652,
    "c": 0.15627,
    "h": 331.8
  },
  "luminance": 0.0669
}

Semantic roles & 50–950 ramp

primary
#7C2274
secondary
#4BAF54
accent
#E05548
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7C2274

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

Preview Lab → · Contrast checker → · Palette generator →

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