#7A2098#7A2098

#7A2098 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.5% C 0.189 H 315.8°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#7A2098
RGBrgb(122, 32, 152)
HSLhsl(285, 65%, 36%)
HSVhsv(285, 79%, 60%)
CMYKcmyk(19.7%, 78.9%, 0%, 40.4%)
CIE-LABlab(32.78, 55.09, -46.59)
CIE-LCHlch(32.78, 72.15, 319.78°)
OKLaboklab(44.52% 0.1352 -0.1314)
OKLCHoklch(44.52% 0.189 315.8)
XYZxyz(14.2091, 7.4382, 30.3869)
Luminance0.0744 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2098 #3E9820
analogous
#3E2098 #7A2098 #98207A
triadic
#7A2098 #987A20 #20987A
tetradic
#7A2098 #983E20 #3E9820 #207A98
square
#7A2098 #983E20 #3E9820 #207A98
split-complementary
#7A2098 #7A9820 #20983E
monochromatic
#290B33 #511565 #7A2098 #A32BCB #BA57DC

Accessibility & contrast

On white

8.44
#7A2098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#7A2098 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2098
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2098#FFFFFF#000000##FFFFFF
##7A20981.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489B
Deuteranopia (green-blind)
#1D4F95
Tritanopia (blue-blind)
#783C5C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7a2098;
/* rgb */ color: rgb(122, 32, 152);
/* oklch */ color: oklch(44.5% 0.189 315.8);
Tailwind
colors: {
  custom: {
    50: '#a567b7',
    500: '#7a2098',
    950: '#000000',
  },
}
SCSS
$custom: #7a2098;
$custom-light: #a567b7;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2098",
  "rgb": {
    "r": 122,
    "g": 32,
    "b": 152
  },
  "hsl": {
    "h": 285,
    "s": 65.217,
    "l": 36.078
  },
  "oklch": {
    "l": 0.44521,
    "c": 0.18857,
    "h": 315.8
  },
  "luminance": 0.07438
}

Semantic roles & 50–950 ramp

primary
#7A2098
secondary
#6FBF54
accent
#E8406A
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7A2098

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

Preview Lab → · Contrast checker → · Palette generator →

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