#792A8E#792A8E

#792A8E is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.6% C 0.167 H 318.4°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#792A8E
RGBrgb(121, 42, 142)
HSLhsl(287, 54%, 36%)
HSVhsv(287, 70%, 56%)
CMYKcmyk(14.8%, 70.4%, 0%, 44.3%)
CIE-LABlab(33.30, 49.01, -39.64)
CIE-LCHlch(33.30, 63.03, 321.03°)
OKLaboklab(44.64% 0.1252 -0.1111)
OKLCHoklch(44.64% 0.167 318.4)
XYZxyz(13.5949, 7.6745, 26.3512)
Luminance0.0767 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792A8E #3F8E2A
analogous
#472A8E #792A8E #8E2A71
triadic
#792A8E #8E792A #2A8E79
tetradic
#792A8E #8E472A #3F8E2A #2A718E
square
#792A8E #8E472A #3F8E2A #2A718E
split-complementary
#792A8E #718E2A #2A8E47
monochromatic
#290E30 #511C5F #792A8E #A138BD #B962D1

Accessibility & contrast

On white

8.28
#792A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#792A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792A8E
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792A8E#FFFFFF#000000##FFFFFF
##792A8E1.008.282.538.28
#FFFFFF8.281.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004991
Deuteranopia (green-blind)
#2F518C
Tritanopia (blue-blind)
#793D59
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #792a8e;
/* rgb */ color: rgb(121, 42, 142);
/* oklch */ color: oklch(44.6% 0.167 318.4);
Tailwind
colors: {
  custom: {
    50: '#a36bb0',
    500: '#792a8e',
    950: '#000000',
  },
}
SCSS
$custom: #792a8e;
$custom-light: #a36bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#792a8e",
  "rgb": {
    "r": 121,
    "g": 42,
    "b": 142
  },
  "hsl": {
    "h": 287.4,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.44636,
    "c": 0.16741,
    "h": 318.4
  },
  "luminance": 0.07674
}

Semantic roles & 50–950 ramp

primary
#792A8E
secondary
#70B65D
accent
#DE4A69
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #792A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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