#797337#797337

#797337 is a mid, moderate yellow. Relative luminance 0.166; OKLCH L 54.7% C 0.081 H 103.6°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#797337
RGBrgb(121, 115, 55)
HSLhsl(55, 38%, 35%)
HSVhsv(55, 55%, 47%)
CMYKcmyk(0%, 5%, 54.5%, 52.5%)
CIE-LABlab(47.76, -6.38, 33.63)
CIE-LCHlch(47.76, 34.23, 100.75°)
OKLaboklab(54.74% -0.0191 0.0792)
OKLCHoklch(54.74% 0.081 103.6)
XYZxyz(14.7059, 16.6027, 6.0437)
Luminance0.1660 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797337 #373D79
analogous
#795237 #797337 #5E7937
triadic
#797337 #377973 #733779
tetradic
#797337 #377952 #373D79 #79375E
square
#797337 #377952 #373D79 #79375E
split-complementary
#797337 #375E79 #523779
monochromatic
#252311 #4F4B24 #797337 #A39B4A #BDB66E

Accessibility & contrast

On white

4.86
#797337 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#797337 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797337
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797337#FFFFFF#000000##FFFFFF
##7973371.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6F31
Deuteranopia (green-blind)
#7E733A
Tritanopia (blue-blind)
#816C65
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #797337;
/* rgb */ color: rgb(121, 115, 55);
/* oklch */ color: oklch(54.7% 0.081 103.6);
Tailwind
colors: {
  custom: {
    50: '#a19b70',
    500: '#797337',
    950: '#000000',
  },
}
SCSS
$custom: #797337;
$custom-light: #a19b70;
$custom-dark: #000000;
JSON
{
  "hex": "#797337",
  "rgb": {
    "r": 121,
    "g": 115,
    "b": 55
  },
  "hsl": {
    "h": 54.545,
    "s": 37.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.54741,
    "c": 0.08142,
    "h": 103.6
  },
  "luminance": 0.16602
}

Semantic roles & 50–950 ramp

primary
#797337
secondary
#666CA6
accent
#65CD5A
background
#FAF9F6
surface
#F4F2EC
border
#CECCC7
text
#0F0E07
muted
#7F7E7A

Preview Lab

Preview with #797337

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

Preview Lab → · Contrast checker → · Palette generator →

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