#792E97#792E97

#792E97 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.7% C 0.171 H 314.6°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#792E97
RGBrgb(121, 46, 151)
HSLhsl(283, 53%, 39%)
HSVhsv(283, 70%, 59%)
CMYKcmyk(19.9%, 69.5%, 0%, 40.8%)
CIE-LABlab(34.51, 49.14, -43.21)
CIE-LCHlch(34.51, 65.44, 318.67°)
OKLaboklab(45.69% 0.1201 -0.1216)
OKLCHoklch(45.69% 0.171 314.6)
XYZxyz(14.4471, 8.2538, 30.1043)
Luminance0.0825 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792E97 #4C972E
analogous
#442E97 #792E97 #972E80
triadic
#792E97 #97792E #2E9779
tetradic
#792E97 #97442E #4C972E #2E8097
square
#792E97 #97442E #4C972E #2E8097
split-complementary
#792E97 #80972E #2E9744
monochromatic
#2E1139 #532068 #792E97 #9E3EC4 #B56DD2

Accessibility & contrast

On white

7.92
#792E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#792E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792E97
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792E97#FFFFFF#000000##FFFFFF
##792E971.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9A
Deuteranopia (green-blind)
#2A5395
Tritanopia (blue-blind)
#76435F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #792e97;
/* rgb */ color: rgb(121, 46, 151);
/* oklch */ color: oklch(45.7% 0.171 314.6);
Tailwind
colors: {
  custom: {
    50: '#a36db6',
    500: '#792e97',
    950: '#000000',
  },
}
SCSS
$custom: #792e97;
$custom-light: #a36db6;
$custom-dark: #000000;
JSON
{
  "hex": "#792e97",
  "rgb": {
    "r": 121,
    "g": 46,
    "b": 151
  },
  "hsl": {
    "h": 282.857,
    "s": 53.299,
    "l": 38.627
  },
  "oklch": {
    "l": 0.45692,
    "c": 0.17092,
    "h": 314.6
  },
  "luminance": 0.08253
}

Semantic roles & 50–950 ramp

primary
#792E97
secondary
#7FBA67
accent
#DD4B75
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0711
muted
#7F7A80

Preview Lab

Preview with #792E97

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

Preview Lab → · Contrast checker → · Palette generator →

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