#791B83#791B83

#791B83 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.5% C 0.175 H 323.7°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#791B83
RGBrgb(121, 27, 131)
HSLhsl(294, 66%, 31%)
HSVhsv(294, 79%, 51%)
CMYKcmyk(7.6%, 79.4%, 0%, 48.6%)
CIE-LABlab(30.61, 52.49, -37.12)
CIE-LCHlch(30.61, 64.29, 324.74°)
OKLaboklab(42.5% 0.141 -0.1036)
OKLCHoklch(42.5% 0.175 323.7)
XYZxyz(12.3735, 6.4883, 22.0690)
Luminance0.0649 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791B83 #25831B
analogous
#451B83 #791B83 #831B59
triadic
#791B83 #83791B #1B8379
tetradic
#791B83 #83451B #25831B #1B5983
square
#791B83 #83451B #25831B #1B5983
split-complementary
#791B83 #59831B #1B8345
monochromatic
#1B061E #4A1150 #791B83 #A825B6 #C941D8

Accessibility & contrast

On white

9.14
#791B83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#791B83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791B83
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791B83#FFFFFF#000000##FFFFFF
##791B831.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004186
Deuteranopia (green-blind)
#2F4C81
Tritanopia (blue-blind)
#7B2F4F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #791b83;
/* rgb */ color: rgb(121, 27, 131);
/* oklch */ color: oklch(42.5% 0.175 323.7);
Tailwind
colors: {
  custom: {
    50: '#a364a7',
    500: '#791b83',
    950: '#000000',
  },
}
SCSS
$custom: #791b83;
$custom-light: #a364a7;
$custom-dark: #000000;
JSON
{
  "hex": "#791b83",
  "rgb": {
    "r": 121,
    "g": 27,
    "b": 131
  },
  "hsl": {
    "h": 294.231,
    "s": 65.823,
    "l": 30.98
  },
  "oklch": {
    "l": 0.42496,
    "c": 0.175,
    "h": 323.7
  },
  "luminance": 0.06488
}

Semantic roles & 50–950 ramp

primary
#791B83
secondary
#4EB643
accent
#E93F4F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #791B83

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

Preview Lab → · Contrast checker → · Palette generator →

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