#792A8F#792A8F

#792A8F is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.7% C 0.168 H 318.0°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#792A8F
RGBrgb(121, 42, 143)
HSLhsl(287, 55%, 36%)
HSVhsv(287, 71%, 56%)
CMYKcmyk(15.4%, 70.6%, 0%, 43.9%)
CIE-LABlab(33.36, 49.21, -40.16)
CIE-LCHlch(33.36, 63.52, 320.79°)
OKLaboklab(44.7% 0.1251 -0.1126)
OKLCHoklch(44.7% 0.168 318)
XYZxyz(13.6704, 7.7046, 26.7483)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792A8F #408F2A
analogous
#472A8F #792A8F #8F2A73
triadic
#792A8F #8F792A #2A8F79
tetradic
#792A8F #8F472A #408F2A #2A738F
square
#792A8F #8F472A #408F2A #2A738F
split-complementary
#792A8F #738F2A #2A8F47
monochromatic
#290E30 #511C60 #792A8F #A138BE #B962D1

Accessibility & contrast

On white

8.27
#792A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#792A8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792A8F
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792A8F#FFFFFF#000000##FFFFFF
##792A8F1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004992
Deuteranopia (green-blind)
#2E518D
Tritanopia (blue-blind)
#783D59
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #792a8f;
/* rgb */ color: rgb(121, 42, 143);
/* oklch */ color: oklch(44.7% 0.168 318.0);
Tailwind
colors: {
  custom: {
    50: '#a36bb0',
    500: '#792a8f',
    950: '#000000',
  },
}
SCSS
$custom: #792a8f;
$custom-light: #a36bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#792a8f",
  "rgb": {
    "r": 121,
    "g": 42,
    "b": 143
  },
  "hsl": {
    "h": 286.931,
    "s": 54.595,
    "l": 36.275
  },
  "oklch": {
    "l": 0.44703,
    "c": 0.16837,
    "h": 318
  },
  "luminance": 0.07704
}

Semantic roles & 50–950 ramp

primary
#792A8F
secondary
#71B75E
accent
#DE4A6A
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #792A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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