#792F8D#792F8D

#792F8D is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.1% C 0.160 H 318.4°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#792F8D
RGBrgb(121, 47, 141)
HSLhsl(287, 50%, 37%)
HSVhsv(287, 67%, 55%)
CMYKcmyk(14.2%, 66.7%, 0%, 44.7%)
CIE-LABlab(34.03, 46.58, -37.86)
CIE-LCHlch(34.03, 60.02, 320.90°)
OKLaboklab(45.14% 0.1194 -0.106)
OKLCHoklch(45.14% 0.16 318.4)
XYZxyz(13.7087, 8.0217, 26.0204)
Luminance0.0802 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792F8D #438D2F
analogous
#4A2F8D #792F8D #8D2F72
triadic
#792F8D #8D792F #2F8D79
tetradic
#792F8D #8D4A2F #438D2F #2F728D
square
#792F8D #8D4A2F #438D2F #2F728D
split-complementary
#792F8D #728D2F #2F8D4A
monochromatic
#2A1031 #52205F #792F8D #A03EBB #B869CD

Accessibility & contrast

On white

8.06
#792F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#792F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792F8D
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792F8D#FFFFFF#000000##FFFFFF
##792F8D1.008.062.608.06
#FFFFFF8.061.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4B90
Deuteranopia (green-blind)
#34528B
Tritanopia (blue-blind)
#79405A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #792f8d;
/* rgb */ color: rgb(121, 47, 141);
/* oklch */ color: oklch(45.1% 0.160 318.4);
Tailwind
colors: {
  custom: {
    50: '#a36daf',
    500: '#792f8d',
    950: '#000000',
  },
}
SCSS
$custom: #792f8d;
$custom-light: #a36daf;
$custom-dark: #000000;
JSON
{
  "hex": "#792f8d",
  "rgb": {
    "r": 121,
    "g": 47,
    "b": 141
  },
  "hsl": {
    "h": 287.234,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45143,
    "c": 0.15963,
    "h": 318.4
  },
  "luminance": 0.08021
}

Semantic roles & 50–950 ramp

primary
#792F8D
secondary
#75B464
accent
#DA4E6C
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #792F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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