#792496#792496

#792496 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.6% C 0.182 H 315.8°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#792496
RGBrgb(121, 36, 150)
HSLhsl(285, 61%, 36%)
HSVhsv(285, 76%, 59%)
CMYKcmyk(19.3%, 76%, 0%, 41.2%)
CIE-LABlab(32.98, 53.05, -45.05)
CIE-LCHlch(32.98, 69.60, 319.66°)
OKLaboklab(44.59% 0.1306 -0.127)
OKLCHoklch(44.59% 0.182 315.8)
XYZxyz(14.0202, 7.5293, 29.5630)
Luminance0.0753 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792496 #419624
analogous
#402496 #792496 #96247A
triadic
#792496 #967924 #249679
tetradic
#792496 #964024 #419624 #247A96
square
#792496 #964024 #419624 #247A96
split-complementary
#792496 #7A9624 #249640
monochromatic
#290C33 #511865 #792496 #A130C7 #B95CD8

Accessibility & contrast

On white

8.38
#792496 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#792496 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792496
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792496#FFFFFF#000000##FFFFFF
##7924961.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004999
Deuteranopia (green-blind)
#225094
Tritanopia (blue-blind)
#773D5B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #792496;
/* rgb */ color: rgb(121, 36, 150);
/* oklch */ color: oklch(44.6% 0.182 315.8);
Tailwind
colors: {
  custom: {
    50: '#a468b5',
    500: '#792496',
    950: '#000000',
  },
}
SCSS
$custom: #792496;
$custom-light: #a468b5;
$custom-dark: #000000;
JSON
{
  "hex": "#792496",
  "rgb": {
    "r": 121,
    "g": 36,
    "b": 150
  },
  "hsl": {
    "h": 284.737,
    "s": 61.29,
    "l": 36.471
  },
  "oklch": {
    "l": 0.44585,
    "c": 0.18217,
    "h": 315.8
  },
  "luminance": 0.07529
}

Semantic roles & 50–950 ramp

primary
#792496
secondary
#72BD59
accent
#E4436C
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #792496

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

Preview Lab → · Contrast checker → · Palette generator →

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