#797331#797331

#797331 is a mid, moderate yellow. Relative luminance 0.165; OKLCH L 54.7% C 0.088 H 104.1°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#797331
RGBrgb(121, 115, 49)
HSLhsl(55, 42%, 33%)
HSVhsv(55, 60%, 47%)
CMYKcmyk(0%, 5%, 59.5%, 52.5%)
CIE-LABlab(47.69, -6.91, 36.63)
CIE-LCHlch(47.69, 37.28, 100.68°)
OKLaboklab(54.66% -0.0213 0.0849)
OKLCHoklch(54.66% 0.088 104.1)
XYZxyz(14.5707, 16.5487, 5.3318)
Luminance0.1655 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797331 #313779
analogous
#794F31 #797331 #5B7931
triadic
#797331 #317973 #733179
tetradic
#797331 #31794F #313779 #79315B
square
#797331 #31794F #313779 #79315B
split-complementary
#797331 #315B79 #4F3179
monochromatic
#22200E #4D4A1F #797331 #A59C43 #C0B964

Accessibility & contrast

On white

4.87
#797331 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#797331 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797331
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797331#FFFFFF#000000##FFFFFF
##7973311.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6F2A
Deuteranopia (green-blind)
#7F7334
Tritanopia (blue-blind)
#826C64
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #797331;
/* rgb */ color: rgb(121, 115, 49);
/* oklch */ color: oklch(54.7% 0.088 104.1);
Tailwind
colors: {
  custom: {
    50: '#a29b6c',
    500: '#797331',
    950: '#000000',
  },
}
SCSS
$custom: #797331;
$custom-light: #a29b6c;
$custom-dark: #000000;
JSON
{
  "hex": "#797331",
  "rgb": {
    "r": 121,
    "g": 115,
    "b": 49
  },
  "hsl": {
    "h": 55,
    "s": 42.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.54663,
    "c": 0.08756,
    "h": 104.1
  },
  "luminance": 0.16548
}

Semantic roles & 50–950 ramp

primary
#797331
secondary
#5E64A8
accent
#60D256
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E07
muted
#7F7E7A

Preview Lab

Preview with #797331

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

Preview Lab → · Contrast checker → · Palette generator →

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