#792898#792898

#792898 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.1% C 0.179 H 314.8°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#792898
RGBrgb(121, 40, 152)
HSLhsl(283, 58%, 38%)
HSVhsv(283, 74%, 60%)
CMYKcmyk(20.4%, 73.7%, 0%, 40.4%)
CIE-LABlab(33.67, 51.91, -45.17)
CIE-LCHlch(33.67, 68.81, 318.97°)
OKLaboklab(45.12% 0.1264 -0.1273)
OKLCHoklch(45.12% 0.179 314.8)
XYZxyz(14.3105, 7.8500, 30.4611)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792898 #479828
analogous
#412898 #792898 #98287F
triadic
#792898 #987928 #289879
tetradic
#792898 #984128 #479828 #287F98
square
#792898 #984128 #479828 #287F98
split-complementary
#792898 #7F9828 #289841
monochromatic
#2C0F37 #521B68 #792898 #A035C8 #B764D6

Accessibility & contrast

On white

8.17
#792898 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#792898 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792898
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792898#FFFFFF#000000##FFFFFF
##7928981.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9B
Deuteranopia (green-blind)
#235196
Tritanopia (blue-blind)
#76405E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #792898;
/* rgb */ color: rgb(121, 40, 152);
/* oklch */ color: oklch(45.1% 0.179 314.8);
Tailwind
colors: {
  custom: {
    50: '#a36ab7',
    500: '#792898',
    950: '#000000',
  },
}
SCSS
$custom: #792898;
$custom-light: #a36ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#792898",
  "rgb": {
    "r": 121,
    "g": 40,
    "b": 152
  },
  "hsl": {
    "h": 283.393,
    "s": 58.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45116,
    "c": 0.17944,
    "h": 314.8
  },
  "luminance": 0.0785
}

Semantic roles & 50–950 ramp

primary
#792898
secondary
#79BC60
accent
#E24671
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #792898

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

Preview Lab → · Contrast checker → · Palette generator →

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