#792F7B#792F7B

#792F7B is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.0% C 0.142 H 326.6°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#792F7B
RGBrgb(121, 47, 123)
HSLhsl(298, 45%, 33%)
HSVhsv(298, 62%, 48%)
CMYKcmyk(1.6%, 61.8%, 0%, 51.8%)
CIE-LABlab(32.98, 42.98, -28.34)
CIE-LCHlch(32.98, 51.49, 326.60°)
OKLaboklab(44.05% 0.1188 -0.0783)
OKLCHoklch(44.05% 0.142 326.6)
XYZxyz(12.4766, 7.5288, 19.5311)
Luminance0.0753 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792F7B #317B2F
analogous
#532F7B #792F7B #7B2F57
triadic
#792F7B #7B792F #2F7B79
tetradic
#792F7B #7B532F #317B2F #2F577B
square
#792F7B #7B532F #317B2F #2F577B
split-complementary
#792F7B #577B2F #2F7B53
monochromatic
#220D22 #4D1E4F #792F7B #A540A7 #C062C3

Accessibility & contrast

On white

8.38
#792F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#792F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##792F7B#FFFFFF#000000##FFFFFF
##792F7B1.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)
#25477D
Deuteranopia (green-blind)
#3F5179
Tritanopia (blue-blind)
#7C3950
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #792f7b;
/* rgb */ color: rgb(121, 47, 123);
/* oklch */ color: oklch(44.0% 0.142 326.6);
Tailwind
colors: {
  custom: {
    50: '#a26da1',
    500: '#792f7b',
    950: '#000000',
  },
}
SCSS
$custom: #792f7b;
$custom-light: #a26da1;
$custom-dark: #000000;
JSON
{
  "hex": "#792f7b",
  "rgb": {
    "r": 121,
    "g": 47,
    "b": 123
  },
  "hsl": {
    "h": 298.421,
    "s": 44.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.44046,
    "c": 0.14227,
    "h": 326.6
  },
  "luminance": 0.07528
}

Semantic roles & 50–950 ramp

primary
#792F7B
secondary
#5EAA5C
accent
#D45357
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#0F070F
muted
#7F7A7E

Preview Lab

Preview with #792F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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