#792987#792987

#792987 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.1% C 0.162 H 321.3°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#792987
RGBrgb(121, 41, 135)
HSLhsl(291, 53%, 35%)
HSVhsv(291, 70%, 53%)
CMYKcmyk(10.4%, 69.6%, 0%, 47.1%)
CIE-LABlab(32.70, 48.03, -36.27)
CIE-LCHlch(32.70, 60.18, 322.94°)
OKLaboklab(44.07% 0.1266 -0.1013)
OKLCHoklch(44.07% 0.162 321.3)
XYZxyz(13.0508, 7.4008, 23.6580)
Luminance0.0740 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792987 #378729
analogous
#4A2987 #792987 #872966
triadic
#792987 #877929 #298779
tetradic
#792987 #874A29 #378729 #296687
square
#792987 #874A29 #378729 #296687
split-complementary
#792987 #668729 #29874A
monochromatic
#250C29 #4F1B58 #792987 #A337B6 #BD5DCE

Accessibility & contrast

On white

8.47
#792987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#792987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792987
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792987#FFFFFF#000000##FFFFFF
##7929871.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09478A
Deuteranopia (green-blind)
#345085
Tritanopia (blue-blind)
#7A3955
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #792987;
/* rgb */ color: rgb(121, 41, 135);
/* oklch */ color: oklch(44.1% 0.162 321.3);
Tailwind
colors: {
  custom: {
    50: '#a36aaa',
    500: '#792987',
    950: '#000000',
  },
}
SCSS
$custom: #792987;
$custom-light: #a36aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#792987",
  "rgb": {
    "r": 121,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 291.064,
    "s": 53.409,
    "l": 34.51
  },
  "oklch": {
    "l": 0.44069,
    "c": 0.16213,
    "h": 321.3
  },
  "luminance": 0.074
}

Semantic roles & 50–950 ramp

primary
#792987
secondary
#66B359
accent
#DD4B61
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #792987

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

Preview Lab → · Contrast checker → · Palette generator →

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