#792E98#792E98

#792E98 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.8% C 0.172 H 314.3°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#792E98
RGBrgb(121, 46, 152)
HSLhsl(282, 54%, 39%)
HSVhsv(282, 70%, 60%)
CMYKcmyk(20.4%, 69.7%, 0%, 40.4%)
CIE-LABlab(34.57, 49.36, -43.72)
CIE-LCHlch(34.57, 65.93, 318.47°)
OKLaboklab(45.76% 0.12 -0.1231)
OKLCHoklch(45.76% 0.172 314.3)
XYZxyz(14.5287, 8.2864, 30.5338)
Luminance0.0829 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792E98 #4D982E
analogous
#442E98 #792E98 #982E82
triadic
#792E98 #98792E #2E9879
tetradic
#792E98 #98442E #4D982E #2E8298
square
#792E98 #98442E #4D982E #2E8298
split-complementary
#792E98 #82982E #2E9844
monochromatic
#2E123A #542069 #792E98 #9D3EC5 #B56DD3

Accessibility & contrast

On white

7.90
#792E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#792E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792E98
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792E98#FFFFFF#000000##FFFFFF
##792E981.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9B
Deuteranopia (green-blind)
#295396
Tritanopia (blue-blind)
#76435F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #792e98;
/* rgb */ color: rgb(121, 46, 152);
/* oklch */ color: oklch(45.8% 0.172 314.3);
Tailwind
colors: {
  custom: {
    50: '#a36db7',
    500: '#792e98',
    950: '#000000',
  },
}
SCSS
$custom: #792e98;
$custom-light: #a36db7;
$custom-dark: #000000;
JSON
{
  "hex": "#792e98",
  "rgb": {
    "r": 121,
    "g": 46,
    "b": 152
  },
  "hsl": {
    "h": 282.453,
    "s": 53.535,
    "l": 38.824
  },
  "oklch": {
    "l": 0.4576,
    "c": 0.17192,
    "h": 314.3
  },
  "luminance": 0.08286
}

Semantic roles & 50–950 ramp

primary
#792E98
secondary
#80BA68
accent
#DD4B76
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0711
muted
#7F7A80

Preview Lab

Preview with #792E98

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

Preview Lab → · Contrast checker → · Palette generator →

#792E98 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva