#7C2098#7C2098

#7C2098 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.8% C 0.189 H 316.7°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#7C2098
RGBrgb(124, 32, 152)
HSLhsl(286, 65%, 36%)
HSVhsv(286, 79%, 60%)
CMYKcmyk(18.4%, 78.9%, 0%, 40.4%)
CIE-LABlab(33.10, 55.48, -46.05)
CIE-LCHlch(33.10, 72.10, 320.30°)
OKLaboklab(44.81% 0.1378 -0.1298)
OKLCHoklch(44.81% 0.189 316.7)
XYZxyz(14.4953, 7.5857, 30.4003)
Luminance0.0759 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2098 #3C9820
analogous
#402098 #7C2098 #982078
triadic
#7C2098 #987C20 #20987C
tetradic
#7C2098 #984020 #3C9820 #207898
square
#7C2098 #984020 #3C9820 #207898
split-complementary
#7C2098 #789820 #209840
monochromatic
#2A0B33 #531565 #7C2098 #A52BCB #BD57DC

Accessibility & contrast

On white

8.34
#7C2098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#7C2098 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2098
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2098#FFFFFF#000000##FFFFFF
##7C20981.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489B
Deuteranopia (green-blind)
#215095
Tritanopia (blue-blind)
#7A3B5C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7c2098;
/* rgb */ color: rgb(124, 32, 152);
/* oklch */ color: oklch(44.8% 0.189 316.7);
Tailwind
colors: {
  custom: {
    50: '#a667b7',
    500: '#7c2098',
    950: '#000000',
  },
}
SCSS
$custom: #7c2098;
$custom-light: #a667b7;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2098",
  "rgb": {
    "r": 124,
    "g": 32,
    "b": 152
  },
  "hsl": {
    "h": 286,
    "s": 65.217,
    "l": 36.078
  },
  "oklch": {
    "l": 0.44811,
    "c": 0.18929,
    "h": 316.7
  },
  "luminance": 0.07585
}

Semantic roles & 50–950 ramp

primary
#7C2098
secondary
#6DBF54
accent
#E84067
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7C2098

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

Preview Lab → · Contrast checker → · Palette generator →

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