#7C2287#7C2287

#7C2287 is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.8% C 0.172 H 323.1°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#7C2287
RGBrgb(124, 34, 135)
HSLhsl(293, 60%, 33%)
HSVhsv(293, 75%, 53%)
CMYKcmyk(8.1%, 74.8%, 0%, 47.1%)
CIE-LABlab(32.21, 51.49, -37.02)
CIE-LCHlch(32.21, 63.42, 324.29°)
OKLaboklab(43.82% 0.1378 -0.1033)
OKLCHoklch(43.82% 0.172 323.1)
XYZxyz(13.2570, 7.1792, 23.6044)
Luminance0.0718 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2287 #2D8722
analogous
#492287 #7C2287 #87225F
triadic
#7C2287 #877C22 #22877C
tetradic
#7C2287 #874922 #2D8722 #225F87
square
#7C2287 #874922 #2D8722 #225F87
split-complementary
#7C2287 #5F8722 #228749
monochromatic
#220925 #4F1656 #7C2287 #A92EB8 #C550D3

Accessibility & contrast

On white

8.62
#7C2287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#7C2287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2287
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2287#FFFFFF#000000##FFFFFF
##7C22871.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458A
Deuteranopia (green-blind)
#334F85
Tritanopia (blue-blind)
#7E3453
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7c2287;
/* rgb */ color: rgb(124, 34, 135);
/* oklch */ color: oklch(43.8% 0.172 323.1);
Tailwind
colors: {
  custom: {
    50: '#a567aa',
    500: '#7c2287',
    950: '#000000',
  },
}
SCSS
$custom: #7c2287;
$custom-light: #a567aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2287",
  "rgb": {
    "r": 124,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 293.465,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.43815,
    "c": 0.17224,
    "h": 323.1
  },
  "luminance": 0.07178
}

Semantic roles & 50–950 ramp

primary
#7C2287
secondary
#5AB74E
accent
#E34556
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7C2287

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

Preview Lab → · Contrast checker → · Palette generator →

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