#7B2098#7B2098

#7B2098 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.7% C 0.189 H 316.3°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#7B2098
RGBrgb(123, 32, 152)
HSLhsl(286, 65%, 36%)
HSVhsv(286, 79%, 60%)
CMYKcmyk(19.1%, 78.9%, 0%, 40.4%)
CIE-LABlab(32.94, 55.28, -46.32)
CIE-LCHlch(32.94, 72.12, 320.04°)
OKLaboklab(44.67% 0.1365 -0.1306)
OKLCHoklch(44.67% 0.189 316.3)
XYZxyz(14.3515, 7.5116, 30.3936)
Luminance0.0751 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2098 #3D9820
analogous
#3F2098 #7B2098 #982079
triadic
#7B2098 #987B20 #20987B
tetradic
#7B2098 #983F20 #3D9820 #207998
square
#7B2098 #983F20 #3D9820 #207998
split-complementary
#7B2098 #799820 #20983F
monochromatic
#290B33 #521565 #7B2098 #A42BCB #BC57DC

Accessibility & contrast

On white

8.39
#7B2098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#7B2098 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2098
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2098#FFFFFF#000000##FFFFFF
##7B20981.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489B
Deuteranopia (green-blind)
#1F5095
Tritanopia (blue-blind)
#793B5C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7b2098;
/* rgb */ color: rgb(123, 32, 152);
/* oklch */ color: oklch(44.7% 0.189 316.3);
Tailwind
colors: {
  custom: {
    50: '#a567b7',
    500: '#7b2098',
    950: '#000000',
  },
}
SCSS
$custom: #7b2098;
$custom-light: #a567b7;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2098",
  "rgb": {
    "r": 123,
    "g": 32,
    "b": 152
  },
  "hsl": {
    "h": 285.5,
    "s": 65.217,
    "l": 36.078
  },
  "oklch": {
    "l": 0.44666,
    "c": 0.18893,
    "h": 316.3
  },
  "luminance": 0.07511
}

Semantic roles & 50–950 ramp

primary
#7B2098
secondary
#6EBF54
accent
#E84068
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7B2098

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

Preview Lab → · Contrast checker → · Palette generator →

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