#794271#794271

#794271 is a mid, moderate purple. Relative luminance 0.092; OKLCH L 46.3% C 0.100 H 332.6°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#794271
RGBrgb(121, 66, 113)
HSLhsl(309, 29%, 37%)
HSVhsv(309, 45%, 47%)
CMYKcmyk(0%, 45.5%, 6.6%, 52.5%)
CIE-LABlab(36.28, 31.04, -16.94)
CIE-LCHlch(36.28, 35.36, 331.37°)
OKLaboklab(46.33% 0.0886 -0.0459)
OKLCHoklch(46.33% 0.1 332.6)
XYZxyz(12.8139, 9.1544, 16.7116)
Luminance0.0915 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#794271 #42794A
analogous
#664279 #794271 #794256
triadic
#794271 #717942 #427179
tetradic
#794271 #796642 #42794A #425679
square
#794271 #796642 #42794A #425679
split-complementary
#794271 #567942 #427966
monochromatic
#2A1727 #512C4C #794271 #A15896 #B87DB0

Accessibility & contrast

On white

7.42
#794271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#794271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #794271
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##794271#FFFFFF#000000##FFFFFF
##7942711.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#415073
Deuteranopia (green-blind)
#50586F
Tritanopia (blue-blind)
#7D4554
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #794271;
/* rgb */ color: rgb(121, 66, 113);
/* oklch */ color: oklch(46.3% 0.100 332.6);
Tailwind
colors: {
  custom: {
    50: '#a1789a',
    500: '#794271',
    950: '#000000',
  },
}
SCSS
$custom: #794271;
$custom-light: #a1789a;
$custom-dark: #000000;
JSON
{
  "hex": "#794271",
  "rgb": {
    "r": 121,
    "g": 66,
    "b": 113
  },
  "hsl": {
    "h": 308.727,
    "s": 29.412,
    "l": 36.667
  },
  "oklch": {
    "l": 0.46325,
    "c": 0.09975,
    "h": 332.6
  },
  "luminance": 0.09154
}

Semantic roles & 50–950 ramp

primary
#794271
secondary
#74A37B
accent
#C67162
background
#FAF7F9
surface
#F3EDF2
border
#CDC8CC
text
#0F090E
muted
#7F7B7E

Preview Lab

Preview with #794271

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

Preview Lab → · Contrast checker → · Palette generator →

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