#792187#792187

#792187 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.3% C 0.172 H 321.8°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#792187
RGBrgb(121, 33, 135)
HSLhsl(292, 61%, 33%)
HSVhsv(292, 76%, 53%)
CMYKcmyk(10.4%, 75.6%, 0%, 47.1%)
CIE-LABlab(31.58, 51.19, -38.05)
CIE-LCHlch(31.58, 63.79, 323.38°)
OKLaboklab(43.27% 0.1351 -0.1064)
OKLCHoklch(43.27% 0.172 321.8)
XYZxyz(12.8017, 6.9026, 23.5750)
Luminance0.0690 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792187 #2F8721
analogous
#462187 #792187 #872162
triadic
#792187 #877921 #218779
tetradic
#792187 #874621 #2F8721 #216287
square
#792187 #874621 #2F8721 #216287
split-complementary
#792187 #628721 #218746
monochromatic
#210925 #4D1556 #792187 #A52DB8 #C24FD4

Accessibility & contrast

On white

8.82
#792187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#792187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792187
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792187#FFFFFF#000000##FFFFFF
##7921871.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448A
Deuteranopia (green-blind)
#2F4E85
Tritanopia (blue-blind)
#7A3452
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #792187;
/* rgb */ color: rgb(121, 33, 135);
/* oklch */ color: oklch(43.3% 0.172 321.8);
Tailwind
colors: {
  custom: {
    50: '#a366aa',
    500: '#792187',
    950: '#000000',
  },
}
SCSS
$custom: #792187;
$custom-light: #a366aa;
$custom-dark: #000000;
JSON
{
  "hex": "#792187",
  "rgb": {
    "r": 121,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 291.765,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.4327,
    "c": 0.17202,
    "h": 321.8
  },
  "luminance": 0.06902
}

Semantic roles & 50–950 ramp

primary
#792187
secondary
#5BB74D
accent
#E4445A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #792187

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

Preview Lab → · Contrast checker → · Palette generator →

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