#797327#797327

#797327 is a mid, moderate yellow. Relative luminance 0.165; OKLCH L 54.6% C 0.097 H 104.8°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#797327
RGBrgb(121, 115, 39)
HSLhsl(56, 51%, 31%)
HSVhsv(56, 68%, 47%)
CMYKcmyk(0%, 5%, 67.8%, 52.5%)
CIE-LABlab(47.59, -7.65, 41.31)
CIE-LCHlch(47.59, 42.02, 100.49°)
OKLaboklab(54.56% -0.0247 0.0934)
OKLCHoklch(54.56% 0.097 104.8)
XYZxyz(14.3826, 16.4734, 4.3411)
Luminance0.1647 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797327 #272D79
analogous
#794A27 #797327 #567927
triadic
#797327 #277973 #732779
tetradic
#797327 #27794A #272D79 #792756
square
#797327 #27794A #272D79 #792756
split-complementary
#797327 #275679 #4A2779
monochromatic
#1C1B09 #4B4718 #797327 #A79F36 #C8BF53

Accessibility & contrast

On white

4.89
#797327 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#797327 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797327
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797327#FFFFFF#000000##FFFFFF
##7973271.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F1D
Deuteranopia (green-blind)
#7F722C
Tritanopia (blue-blind)
#826B63
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #797327;
/* rgb */ color: rgb(121, 115, 39);
/* oklch */ color: oklch(54.6% 0.097 104.8);
Tailwind
colors: {
  custom: {
    50: '#a29b65',
    500: '#797327',
    950: '#000000',
  },
}
SCSS
$custom: #797327;
$custom-light: #a29b65;
$custom-dark: #000000;
JSON
{
  "hex": "#797327",
  "rgb": {
    "r": 121,
    "g": 115,
    "b": 39
  },
  "hsl": {
    "h": 55.61,
    "s": 51.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.54556,
    "c": 0.09655,
    "h": 104.8
  },
  "luminance": 0.16473
}

Semantic roles & 50–950 ramp

primary
#797327
secondary
#5157AB
accent
#57DB4D
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #797327

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

Preview Lab → · Contrast checker → · Palette generator →

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