#791781#791781

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

Color values

HEX#791781
RGBrgb(121, 23, 129)
HSLhsl(295, 70%, 30%)
HSVhsv(295, 82%, 51%)
CMYKcmyk(6.2%, 82.2%, 0%, 49.4%)
CIE-LABlab(30.07, 53.33, -36.73)
CIE-LCHlch(30.07, 64.76, 325.44°)
OKLaboklab(42.07% 0.1445 -0.1025)
OKLCHoklch(42.07% 0.177 324.6)
XYZxyz(12.1537, 6.2635, 21.3335)
Luminance0.0626 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791781 #1F8117
analogous
#441781 #791781 #811754
triadic
#791781 #817917 #178179
tetradic
#791781 #814417 #1F8117 #175481
square
#791781 #814417 #1F8117 #175481
split-complementary
#791781 #548117 #178144
monochromatic
#18051A #480E4D #791781 #AA20B5 #CF37DB

Accessibility & contrast

On white

9.32
#791781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#791781 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791781
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791781#FFFFFF#000000##FFFFFF
##7917811.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F84
Deuteranopia (green-blind)
#2E4B7F
Tritanopia (blue-blind)
#7C2C4D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #791781;
/* rgb */ color: rgb(121, 23, 129);
/* oklch */ color: oklch(42.1% 0.177 324.6);
Tailwind
colors: {
  custom: {
    50: '#a362a6',
    500: '#791781',
    950: '#000000',
  },
}
SCSS
$custom: #791781;
$custom-light: #a362a6;
$custom-dark: #000000;
JSON
{
  "hex": "#791781",
  "rgb": {
    "r": 121,
    "g": 23,
    "b": 129
  },
  "hsl": {
    "h": 295.472,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.42069,
    "c": 0.17714,
    "h": 324.6
  },
  "luminance": 0.06263
}

Semantic roles & 50–950 ramp

primary
#791781
secondary
#47B53E
accent
#ED3B49
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #791781

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

Preview Lab → · Contrast checker → · Palette generator →

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