#792180#792180

#792180 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.8% C 0.166 H 324.8°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#792180
RGBrgb(121, 33, 128)
HSLhsl(296, 59%, 32%)
HSVhsv(296, 74%, 50%)
CMYKcmyk(5.5%, 74.2%, 0%, 49.8%)
CIE-LABlab(31.14, 49.88, -34.39)
CIE-LCHlch(31.14, 60.59, 325.41°)
OKLaboklab(42.81% 0.1355 -0.0957)
OKLCHoklch(42.81% 0.166 324.8)
XYZxyz(12.3250, 6.7120, 21.0643)
Luminance0.0671 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792180 #288021
analogous
#4A2180 #792180 #802158
triadic
#792180 #807921 #218079
tetradic
#792180 #804A21 #288021 #215880
square
#792180 #804A21 #288021 #215880
split-complementary
#792180 #588021 #21804A
monochromatic
#1D081F #4B144F #792180 #A72EB1 #C74BD1

Accessibility & contrast

On white

8.97
#792180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#792180 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792180
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792180#FFFFFF#000000##FFFFFF
##7921801.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#034283
Deuteranopia (green-blind)
#344D7E
Tritanopia (blue-blind)
#7C314E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #792180;
/* rgb */ color: rgb(121, 33, 128);
/* oklch */ color: oklch(42.8% 0.166 324.8);
Tailwind
colors: {
  custom: {
    50: '#a366a5',
    500: '#792180',
    950: '#000000',
  },
}
SCSS
$custom: #792180;
$custom-light: #a366a5;
$custom-dark: #000000;
JSON
{
  "hex": "#792180",
  "rgb": {
    "r": 121,
    "g": 33,
    "b": 128
  },
  "hsl": {
    "h": 295.579,
    "s": 59.006,
    "l": 31.569
  },
  "oklch": {
    "l": 0.42812,
    "c": 0.16592,
    "h": 324.8
  },
  "luminance": 0.06711
}

Semantic roles & 50–950 ramp

primary
#792180
secondary
#52B34A
accent
#E24651
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #792180

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

Preview Lab → · Contrast checker → · Palette generator →

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