#7C2282#7C2282

#7C2282 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.5% C 0.168 H 325.3°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#7C2282
RGBrgb(124, 34, 130)
HSLhsl(296, 59%, 32%)
HSVhsv(296, 74%, 51%)
CMYKcmyk(4.6%, 73.8%, 0%, 49%)
CIE-LABlab(31.90, 50.57, -34.40)
CIE-LCHlch(31.90, 61.16, 325.77°)
OKLaboklab(43.49% 0.138 -0.0957)
OKLCHoklch(43.49% 0.168 325.3)
XYZxyz(12.9132, 7.0417, 21.7938)
Luminance0.0704 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2282 #288222
analogous
#4C2282 #7C2282 #822258
triadic
#7C2282 #827C22 #22827C
tetradic
#7C2282 #824C22 #288222 #225882
square
#7C2282 #824C22 #288222 #225882
split-complementary
#7C2282 #588222 #22824C
monochromatic
#1F0921 #4E1551 #7C2282 #AA2FB3 #C84ED1

Accessibility & contrast

On white

8.72
#7C2282 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#7C2282 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2282
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2282#FFFFFF#000000##FFFFFF
##7C22821.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#064485
Deuteranopia (green-blind)
#364F80
Tritanopia (blue-blind)
#7F3250
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7c2282;
/* rgb */ color: rgb(124, 34, 130);
/* oklch */ color: oklch(43.5% 0.168 325.3);
Tailwind
colors: {
  custom: {
    50: '#a567a7',
    500: '#7c2282',
    950: '#000000',
  },
}
SCSS
$custom: #7c2282;
$custom-light: #a567a7;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2282",
  "rgb": {
    "r": 124,
    "g": 34,
    "b": 130
  },
  "hsl": {
    "h": 296.25,
    "s": 58.537,
    "l": 32.157
  },
  "oklch": {
    "l": 0.43494,
    "c": 0.16792,
    "h": 325.3
  },
  "luminance": 0.07041
}

Semantic roles & 50–950 ramp

primary
#7C2282
secondary
#52B44C
accent
#E24650
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C2282

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

Preview Lab → · Contrast checker → · Palette generator →

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