#791B7D#791B7D

#791B7D is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.1% C 0.170 H 326.3°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#791B7D
RGBrgb(121, 27, 125)
HSLhsl(298, 64%, 30%)
HSVhsv(298, 78%, 49%)
CMYKcmyk(3.2%, 78.4%, 0%, 51%)
CIE-LABlab(30.23, 51.41, -33.96)
CIE-LCHlch(30.23, 61.62, 326.55°)
OKLaboklab(42.1% 0.1414 -0.0944)
OKLCHoklch(42.1% 0.17 326.3)
XYZxyz(11.9785, 6.3303, 19.9890)
Luminance0.0633 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791B7D #1F7D1B
analogous
#481B7D #791B7D #7D1B50
triadic
#791B7D #7D791B #1B7D79
tetradic
#791B7D #7D481B #1F7D1B #1B507D
square
#791B7D #7D481B #1F7D1B #1B507D
split-complementary
#791B7D #507D1B #1B7D48
monochromatic
#180519 #48104B #791B7D #AA26AF #CF3DD5

Accessibility & contrast

On white

9.27
#791B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#791B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791B7D
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791B7D#FFFFFF#000000##FFFFFF
##791B7D1.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004080
Deuteranopia (green-blind)
#334B7B
Tritanopia (blue-blind)
#7C2C4B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #791b7d;
/* rgb */ color: rgb(121, 27, 125);
/* oklch */ color: oklch(42.1% 0.170 326.3);
Tailwind
colors: {
  custom: {
    50: '#a363a3',
    500: '#791b7d',
    950: '#000000',
  },
}
SCSS
$custom: #791b7d;
$custom-light: #a363a3;
$custom-dark: #000000;
JSON
{
  "hex": "#791b7d",
  "rgb": {
    "r": 121,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 297.551,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.42103,
    "c": 0.17003,
    "h": 326.3
  },
  "luminance": 0.06329
}

Semantic roles & 50–950 ramp

primary
#791B7D
secondary
#47B143
accent
#E74047
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #791B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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