#793286#793286

#793286 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.1% C 0.148 H 321.2°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#793286
RGBrgb(121, 50, 134)
HSLhsl(291, 46%, 36%)
HSVhsv(291, 63%, 53%)
CMYKcmyk(9.7%, 62.7%, 0%, 47.5%)
CIE-LABlab(34.12, 43.71, -33.39)
CIE-LCHlch(34.12, 55.00, 322.63°)
OKLaboklab(45.08% 0.1155 -0.0929)
OKLCHoklch(45.08% 0.148 321.2)
XYZxyz(13.3283, 8.0680, 23.4049)
Luminance0.0807 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#793286 #3F8632
analogous
#4F3286 #793286 #863269
triadic
#793286 #867932 #328679
tetradic
#793286 #864F32 #3F8632 #326986
square
#793286 #864F32 #3F8632 #326986
split-complementary
#793286 #698632 #32864F
monochromatic
#29112D #512159 #793286 #A143B3 #B96BC8

Accessibility & contrast

On white

8.04
#793286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #793286
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##793286#FFFFFF#000000##FFFFFF
##7932861.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4B89
Deuteranopia (green-blind)
#3B5384
Tritanopia (blue-blind)
#7A3F57
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #793286;
/* rgb */ color: rgb(121, 50, 134);
/* oklch */ color: oklch(45.1% 0.148 321.2);
Tailwind
colors: {
  custom: {
    50: '#a26fa9',
    500: '#793286',
    950: '#000000',
  },
}
SCSS
$custom: #793286;
$custom-light: #a26fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#793286",
  "rgb": {
    "r": 121,
    "g": 50,
    "b": 134
  },
  "hsl": {
    "h": 290.714,
    "s": 45.652,
    "l": 36.078
  },
  "oklch": {
    "l": 0.45077,
    "c": 0.14827,
    "h": 321.2
  },
  "luminance": 0.08067
}

Semantic roles & 50–950 ramp

primary
#793286
secondary
#70AF64
accent
#D55267
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #793286

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

Preview Lab → · Contrast checker → · Palette generator →

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