#791F78#791F78

#791F78 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.1% C 0.162 H 328.5°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#791F78
RGBrgb(121, 31, 120)
HSLhsl(301, 59%, 30%)
HSVhsv(301, 74%, 47%)
CMYKcmyk(0%, 74.4%, 0.8%, 52.5%)
CIE-LABlab(30.40, 49.17, -30.53)
CIE-LCHlch(30.40, 57.87, 328.16°)
OKLaboklab(42.13% 0.1377 -0.0845)
OKLCHoklch(42.13% 0.162 328.5)
XYZxyz(11.7652, 6.4018, 18.3817)
Luminance0.0640 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791F78 #1F7920
analogous
#4D1F79 #791F78 #791F4B
triadic
#791F78 #78791F #1F7879
tetradic
#791F78 #794D1F #1F7920 #1F4B79
square
#791F78 #794D1F #1F7920 #1F4B79
split-complementary
#791F78 #4B791F #1F794D
monochromatic
#180618 #481348 #791F78 #AA2BA8 #CF43CD

Accessibility & contrast

On white

9.21
#791F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#791F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791F78
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791F78#FFFFFF#000000##FFFFFF
##791F781.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10407A
Deuteranopia (green-blind)
#384C76
Tritanopia (blue-blind)
#7D2C49
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #791f78;
/* rgb */ color: rgb(121, 31, 120);
/* oklch */ color: oklch(42.1% 0.162 328.5);
Tailwind
colors: {
  custom: {
    50: '#a3659f',
    500: '#791f78',
    950: '#000000',
  },
}
SCSS
$custom: #791f78;
$custom-light: #a3659f;
$custom-dark: #000000;
JSON
{
  "hex": "#791f78",
  "rgb": {
    "r": 121,
    "g": 31,
    "b": 120
  },
  "hsl": {
    "h": 300.667,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.42129,
    "c": 0.16151,
    "h": 328.5
  },
  "luminance": 0.06401
}

Semantic roles & 50–950 ramp

primary
#791F78
secondary
#47AC48
accent
#E24745
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #791F78

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

Preview Lab → · Contrast checker → · Palette generator →

#791F78 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva