#797237#797237

#797237 is a mid, moderate yellow. Relative luminance 0.164; OKLCH L 54.5% C 0.080 H 102.6°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#797237
RGBrgb(121, 114, 55)
HSLhsl(54, 38%, 35%)
HSVhsv(54, 55%, 47%)
CMYKcmyk(0%, 5.8%, 54.5%, 52.5%)
CIE-LABlab(47.46, -5.82, 33.29)
CIE-LCHlch(47.46, 33.79, 99.92°)
OKLaboklab(54.51% -0.0175 0.0784)
OKLCHoklch(54.51% 0.08 102.6)
XYZxyz(14.5925, 16.3759, 6.0059)
Luminance0.1638 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797237 #373E79
analogous
#795137 #797237 #5F7937
triadic
#797237 #377972 #723779
tetradic
#797237 #377951 #373E79 #79375F
square
#797237 #377951 #373E79 #79375F
split-complementary
#797237 #375F79 #513779
monochromatic
#252311 #4F4A24 #797237 #A39A4A #BDB46E

Accessibility & contrast

On white

4.91
#797237 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#797237 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797237
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797237#FFFFFF#000000##FFFFFF
##7972371.004.914.274.91
#FFFFFF4.911.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6F32
Deuteranopia (green-blind)
#7D723A
Tritanopia (blue-blind)
#816B65
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #797237;
/* rgb */ color: rgb(121, 114, 55);
/* oklch */ color: oklch(54.5% 0.080 102.6);
Tailwind
colors: {
  custom: {
    50: '#a19a70',
    500: '#797237',
    950: '#000000',
  },
}
SCSS
$custom: #797237;
$custom-light: #a19a70;
$custom-dark: #000000;
JSON
{
  "hex": "#797237",
  "rgb": {
    "r": 121,
    "g": 114,
    "b": 55
  },
  "hsl": {
    "h": 53.636,
    "s": 37.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.54509,
    "c": 0.08033,
    "h": 102.6
  },
  "luminance": 0.16375
}

Semantic roles & 50–950 ramp

primary
#797237
secondary
#666DA6
accent
#67CD5A
background
#FAF9F6
surface
#F4F2EC
border
#CECCC7
text
#0F0E07
muted
#7F7E7A

Preview Lab

Preview with #797237

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

Preview Lab → · Contrast checker → · Palette generator →

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