#7C2286#7C2286

#7C2286 is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.8% C 0.171 H 323.6°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#7C2286
RGBrgb(124, 34, 134)
HSLhsl(294, 60%, 33%)
HSVhsv(294, 75%, 53%)
CMYKcmyk(7.5%, 74.6%, 0%, 47.5%)
CIE-LABlab(32.15, 51.31, -36.50)
CIE-LCHlch(32.15, 62.97, 324.57°)
OKLaboklab(43.75% 0.1379 -0.1018)
OKLCHoklch(43.75% 0.171 323.6)
XYZxyz(13.1869, 7.1512, 23.2354)
Luminance0.0715 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2286 #2C8622
analogous
#4A2286 #7C2286 #86225E
triadic
#7C2286 #867C22 #22867C
tetradic
#7C2286 #864A22 #2C8622 #225E86
square
#7C2286 #864A22 #2C8622 #225E86
split-complementary
#7C2286 #5E8622 #22864A
monochromatic
#220924 #4F1655 #7C2286 #A92EB7 #C550D3

Accessibility & contrast

On white

8.64
#7C2286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#7C2286 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2286
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2286#FFFFFF#000000##FFFFFF
##7C22861.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004589
Deuteranopia (green-blind)
#334F84
Tritanopia (blue-blind)
#7E3452
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7c2286;
/* rgb */ color: rgb(124, 34, 134);
/* oklch */ color: oklch(43.8% 0.171 323.6);
Tailwind
colors: {
  custom: {
    50: '#a567aa',
    500: '#7c2286',
    950: '#000000',
  },
}
SCSS
$custom: #7c2286;
$custom-light: #a567aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2286",
  "rgb": {
    "r": 124,
    "g": 34,
    "b": 134
  },
  "hsl": {
    "h": 294,
    "s": 59.524,
    "l": 32.941
  },
  "oklch": {
    "l": 0.4375,
    "c": 0.17137,
    "h": 323.6
  },
  "luminance": 0.0715
}

Semantic roles & 50–950 ramp

primary
#7C2286
secondary
#58B64E
accent
#E34555
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7C2286

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

Preview Lab → · Contrast checker → · Palette generator →

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