#792298#792298

#792298 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.5% C 0.186 H 315.2°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#792298
RGBrgb(121, 34, 152)
HSLhsl(284, 63%, 36%)
HSVhsv(284, 78%, 60%)
CMYKcmyk(20.4%, 77.6%, 0%, 40.4%)
CIE-LABlab(32.87, 54.20, -46.46)
CIE-LCHlch(32.87, 71.39, 319.39°)
OKLaboklab(44.55% 0.1322 -0.1311)
OKLCHoklch(44.55% 0.186 315.2)
XYZxyz(14.1238, 7.4765, 30.3988)
Luminance0.0748 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792298 #419822
analogous
#3E2298 #792298 #98227C
triadic
#792298 #987922 #229879
tetradic
#792298 #983E22 #419822 #227C98
square
#792298 #983E22 #419822 #227C98
split-complementary
#792298 #7C9822 #22983E
monochromatic
#290C34 #511766 #792298 #A12DCA #B95ADA

Accessibility & contrast

On white

8.42
#792298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#792298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792298
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792298#FFFFFF#000000##FFFFFF
##7922981.008.422.508.42
#FFFFFF8.421.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #792298;
/* rgb */ color: rgb(121, 34, 152);
/* oklch */ color: oklch(44.5% 0.186 315.2);
Tailwind
colors: {
  custom: {
    50: '#a467b7',
    500: '#792298',
    950: '#000000',
  },
}
SCSS
$custom: #792298;
$custom-light: #a467b7;
$custom-dark: #000000;
JSON
{
  "hex": "#792298",
  "rgb": {
    "r": 121,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 284.237,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.44548,
    "c": 0.18616,
    "h": 315.2
  },
  "luminance": 0.07476
}

Semantic roles & 50–950 ramp

primary
#792298
secondary
#72BE57
accent
#E6416D
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #792298

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

Preview Lab → · Contrast checker → · Palette generator →

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