#791988#791988

#791988 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.7% C 0.181 H 321.7°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#791988
RGBrgb(121, 25, 136)
HSLhsl(292, 69%, 32%)
HSVhsv(292, 82%, 53%)
CMYKcmyk(11%, 81.6%, 0%, 46.7%)
CIE-LABlab(30.73, 54.03, -40.04)
CIE-LCHlch(30.73, 67.25, 323.46°)
OKLaboklab(42.69% 0.1421 -0.1122)
OKLCHoklch(42.69% 0.181 321.7)
XYZxyz(12.6762, 6.5385, 23.8821)
Luminance0.0654 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791988 #288819
analogous
#421988 #791988 #881960
triadic
#791988 #887919 #198879
tetradic
#791988 #884219 #288819 #196088
square
#791988 #884219 #288819 #196088
split-complementary
#791988 #608819 #198842
monochromatic
#1D0621 #4B0F54 #791988 #A723BC #C740DC

Accessibility & contrast

On white

9.10
#791988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#791988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791988
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791988#FFFFFF#000000##FFFFFF
##7919881.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428B
Deuteranopia (green-blind)
#294C86
Tritanopia (blue-blind)
#7A3151
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #791988;
/* rgb */ color: rgb(121, 25, 136);
/* oklch */ color: oklch(42.7% 0.181 321.7);
Tailwind
colors: {
  custom: {
    50: '#a363ab',
    500: '#791988',
    950: '#000000',
  },
}
SCSS
$custom: #791988;
$custom-light: #a363ab;
$custom-dark: #000000;
JSON
{
  "hex": "#791988",
  "rgb": {
    "r": 121,
    "g": 25,
    "b": 136
  },
  "hsl": {
    "h": 291.892,
    "s": 68.944,
    "l": 31.569
  },
  "oklch": {
    "l": 0.42687,
    "c": 0.18109,
    "h": 321.7
  },
  "luminance": 0.06538
}

Semantic roles & 50–950 ramp

primary
#791988
secondary
#52BB41
accent
#EC3C54
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #791988

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

Preview Lab → · Contrast checker → · Palette generator →

#791988 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva