#791881#791881

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

Color values

HEX#791881
RGBrgb(121, 24, 129)
HSLhsl(295, 69%, 30%)
HSVhsv(295, 81%, 51%)
CMYKcmyk(6.2%, 81.4%, 0%, 49.4%)
CIE-LABlab(30.17, 53.04, -36.58)
CIE-LCHlch(30.17, 64.43, 325.41°)
OKLaboklab(42.14% 0.1437 -0.102)
OKLCHoklch(42.14% 0.176 324.6)
XYZxyz(12.1739, 6.3040, 21.3402)
Luminance0.0630 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791881 #208118
analogous
#451881 #791881 #811854
triadic
#791881 #817918 #188179
tetradic
#791881 #814518 #208118 #185481
square
#791881 #814518 #208118 #185481
split-complementary
#791881 #548118 #188145
monochromatic
#18051A #490E4D #791881 #A922B5 #CE39DA

Accessibility & contrast

On white

9.29
#791881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #791881
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791881#FFFFFF#000000##FFFFFF
##7918811.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.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: #791881;
/* rgb */ color: rgb(121, 24, 129);
/* oklch */ color: oklch(42.1% 0.176 324.6);
Tailwind
colors: {
  custom: {
    50: '#a362a6',
    500: '#791881',
    950: '#000000',
  },
}
SCSS
$custom: #791881;
$custom-light: #a362a6;
$custom-dark: #000000;
JSON
{
  "hex": "#791881",
  "rgb": {
    "r": 121,
    "g": 24,
    "b": 129
  },
  "hsl": {
    "h": 295.429,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.42139,
    "c": 0.17623,
    "h": 324.6
  },
  "luminance": 0.06303
}

Semantic roles & 50–950 ramp

primary
#791881
secondary
#49B540
accent
#EB3C4A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #791881

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

Preview Lab → · Contrast checker → · Palette generator →

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