#791980#791980

#791980 is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.1% C 0.174 H 325.0°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#791980
RGBrgb(121, 25, 128)
HSLhsl(296, 67%, 30%)
HSVhsv(296, 80%, 50%)
CMYKcmyk(5.5%, 80.5%, 0%, 49.8%)
CIE-LABlab(30.20, 52.57, -35.89)
CIE-LCHlch(30.20, 63.65, 325.68°)
OKLaboklab(42.15% 0.1429 -0.1)
OKLCHoklch(42.15% 0.174 325)
XYZxyz(12.1288, 6.3195, 20.9988)
Luminance0.0632 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791980 #208019
analogous
#451980 #791980 #801954
triadic
#791980 #807919 #198079
tetradic
#791980 #804519 #208019 #195480
square
#791980 #804519 #208019 #195480
split-complementary
#791980 #548019 #198045
monochromatic
#18051A #490F4D #791980 #A923B3 #CE3BD9

Accessibility & contrast

On white

9.28
#791980 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#791980 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791980
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791980#FFFFFF#000000##FFFFFF
##7919801.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004083
Deuteranopia (green-blind)
#304B7E
Tritanopia (blue-blind)
#7C2D4C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #791980;
/* rgb */ color: rgb(121, 25, 128);
/* oklch */ color: oklch(42.1% 0.174 325.0);
Tailwind
colors: {
  custom: {
    50: '#a363a5',
    500: '#791980',
    950: '#000000',
  },
}
SCSS
$custom: #791980;
$custom-light: #a363a5;
$custom-dark: #000000;
JSON
{
  "hex": "#791980",
  "rgb": {
    "r": 121,
    "g": 25,
    "b": 128
  },
  "hsl": {
    "h": 295.922,
    "s": 67.32,
    "l": 30
  },
  "oklch": {
    "l": 0.42145,
    "c": 0.17448,
    "h": 325
  },
  "luminance": 0.06319
}

Semantic roles & 50–950 ramp

primary
#791980
secondary
#49B441
accent
#EA3E49
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #791980

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

Preview Lab → · Contrast checker → · Palette generator →

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