#791981#791981

#791981 is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.2% C 0.175 H 324.6°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#791981
RGBrgb(121, 25, 129)
HSLhsl(295, 68%, 30%)
HSVhsv(295, 81%, 51%)
CMYKcmyk(6.2%, 80.6%, 0%, 49.4%)
CIE-LABlab(30.27, 52.75, -36.41)
CIE-LCHlch(30.27, 64.10, 325.38°)
OKLaboklab(42.21% 0.1429 -0.1016)
OKLCHoklch(42.21% 0.175 324.6)
XYZxyz(12.1949, 6.3460, 21.3472)
Luminance0.0635 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791981 #218119
analogous
#451981 #791981 #811955
triadic
#791981 #817919 #198179
tetradic
#791981 #814519 #218119 #195581
square
#791981 #814519 #218119 #195581
split-complementary
#791981 #558119 #198145
monochromatic
#19051A #490F4E #791981 #A923B4 #CD3BD9

Accessibility & contrast

On white

9.26
#791981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#791981 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791981
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791981#FFFFFF#000000##FFFFFF
##7919811.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004084
Deuteranopia (green-blind)
#2F4B7F
Tritanopia (blue-blind)
#7C2D4D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #791981;
/* rgb */ color: rgb(121, 25, 129);
/* oklch */ color: oklch(42.2% 0.175 324.6);
Tailwind
colors: {
  custom: {
    50: '#a363a6',
    500: '#791981',
    950: '#000000',
  },
}
SCSS
$custom: #791981;
$custom-light: #a363a6;
$custom-dark: #000000;
JSON
{
  "hex": "#791981",
  "rgb": {
    "r": 121,
    "g": 25,
    "b": 129
  },
  "hsl": {
    "h": 295.385,
    "s": 67.532,
    "l": 30.196
  },
  "oklch": {
    "l": 0.42211,
    "c": 0.17529,
    "h": 324.6
  },
  "luminance": 0.06345
}

Semantic roles & 50–950 ramp

primary
#791981
secondary
#4AB541
accent
#EA3D4B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #791981

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

Preview Lab → · Contrast checker → · Palette generator →

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