#793188#793188

#793188 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.1% C 0.152 H 320.4°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#793188
RGBrgb(121, 49, 136)
HSLhsl(290, 47%, 36%)
HSVhsv(290, 64%, 53%)
CMYKcmyk(11%, 64%, 0%, 46.7%)
CIE-LABlab(34.07, 44.60, -34.71)
CIE-LCHlch(34.07, 56.52, 322.11°)
OKLaboklab(45.07% 0.1169 -0.0968)
OKLCHoklch(45.07% 0.152 320.4)
XYZxyz(13.4269, 8.0398, 24.1324)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#793188 #408831
analogous
#4E3188 #793188 #88316C
triadic
#793188 #887931 #318879
tetradic
#793188 #884E31 #408831 #316C88
square
#793188 #884E31 #408831 #316C88
split-complementary
#793188 #6C8831 #31884E
monochromatic
#29112E #51215B #793188 #A141B5 #B96AC9

Accessibility & contrast

On white

8.05
#793188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#793188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #793188
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##793188#FFFFFF#000000##FFFFFF
##7931881.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4B8B
Deuteranopia (green-blind)
#395386
Tritanopia (blue-blind)
#7A3F58
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #793188;
/* rgb */ color: rgb(121, 49, 136);
/* oklch */ color: oklch(45.1% 0.152 320.4);
Tailwind
colors: {
  custom: {
    50: '#a26eab',
    500: '#793188',
    950: '#000000',
  },
}
SCSS
$custom: #793188;
$custom-light: #a26eab;
$custom-dark: #000000;
JSON
{
  "hex": "#793188",
  "rgb": {
    "r": 121,
    "g": 49,
    "b": 136
  },
  "hsl": {
    "h": 289.655,
    "s": 47.027,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45072,
    "c": 0.15177,
    "h": 320.4
  },
  "luminance": 0.08039
}

Semantic roles & 50–950 ramp

primary
#793188
secondary
#71B164
accent
#D75168
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #793188

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

Preview Lab → · Contrast checker → · Palette generator →

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