#792198#792198

#792198 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.5% C 0.187 H 315.3°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#792198
RGBrgb(121, 33, 152)
HSLhsl(284, 64%, 36%)
HSVhsv(284, 78%, 60%)
CMYKcmyk(20.4%, 78.3%, 0%, 40.4%)
CIE-LABlab(32.74, 54.55, -46.66)
CIE-LCHlch(32.74, 71.78, 319.46°)
OKLaboklab(44.46% 0.1331 -0.1317)
OKLCHoklch(44.46% 0.187 315.3)
XYZxyz(14.0956, 7.4202, 30.3894)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792198 #409821
analogous
#3E2198 #792198 #98217C
triadic
#792198 #987921 #219879
tetradic
#792198 #983E21 #409821 #217C98
square
#792198 #983E21 #409821 #217C98
split-complementary
#792198 #7C9821 #21983E
monochromatic
#290B33 #511666 #792198 #A12CCA #B959DB

Accessibility & contrast

On white

8.45
#792198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#792198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792198
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792198#FFFFFF#000000##FFFFFF
##7921981.008.452.488.45
#FFFFFF8.451.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #792198;
/* rgb */ color: rgb(121, 33, 152);
/* oklch */ color: oklch(44.5% 0.187 315.3);
Tailwind
colors: {
  custom: {
    50: '#a467b7',
    500: '#792198',
    950: '#000000',
  },
}
SCSS
$custom: #792198;
$custom-light: #a467b7;
$custom-dark: #000000;
JSON
{
  "hex": "#792198",
  "rgb": {
    "r": 121,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 284.37,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.44462,
    "c": 0.1872,
    "h": 315.3
  },
  "luminance": 0.0742
}

Semantic roles & 50–950 ramp

primary
#792198
secondary
#71BF56
accent
#E7406C
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #792198

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

Preview Lab → · Contrast checker → · Palette generator →

#792198 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva