#7C2298#7C2298

#7C2298 is a dark, vivid purple. Relative luminance 0.077; OKLCH L 45.0% C 0.187 H 316.6°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#7C2298
RGBrgb(124, 34, 152)
HSLhsl(286, 63%, 36%)
HSVhsv(286, 78%, 60%)
CMYKcmyk(18.4%, 77.6%, 0%, 40.4%)
CIE-LABlab(33.34, 54.79, -45.67)
CIE-LCHlch(33.34, 71.33, 320.19°)
OKLaboklab(44.98% 0.1361 -0.1287)
OKLCHoklch(44.98% 0.187 316.6)
XYZxyz(14.5508, 7.6967, 30.4188)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2298 #3E9822
analogous
#412298 #7C2298 #982279
triadic
#7C2298 #987C22 #22987C
tetradic
#7C2298 #984122 #3E9822 #227998
square
#7C2298 #984122 #3E9822 #227998
split-complementary
#7C2298 #799822 #229841
monochromatic
#2A0C34 #531766 #7C2298 #A52DCA #BC5ADA

Accessibility & contrast

On white

8.27
#7C2298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7C2298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2298
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2298#FFFFFF#000000##FFFFFF
##7C22981.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499B
Deuteranopia (green-blind)
#225195
Tritanopia (blue-blind)
#7A3C5C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7c2298;
/* rgb */ color: rgb(124, 34, 152);
/* oklch */ color: oklch(45.0% 0.187 316.6);
Tailwind
colors: {
  custom: {
    50: '#a668b7',
    500: '#7c2298',
    950: '#000000',
  },
}
SCSS
$custom: #7c2298;
$custom-light: #a668b7;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2298",
  "rgb": {
    "r": 124,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 285.763,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.4498,
    "c": 0.18725,
    "h": 316.6
  },
  "luminance": 0.07696
}

Semantic roles & 50–950 ramp

primary
#7C2298
secondary
#70BE57
accent
#E64169
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7C2298

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

Preview Lab → · Contrast checker → · Palette generator →

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