#797239#797239

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

Color values

HEX#797239
RGBrgb(121, 114, 57)
HSLhsl(53, 36%, 35%)
HSVhsv(53, 53%, 47%)
CMYKcmyk(0%, 5.8%, 52.9%, 52.5%)
CIE-LABlab(47.49, -5.63, 32.26)
CIE-LCHlch(47.49, 32.75, 99.90°)
OKLaboklab(54.54% -0.0167 0.0764)
OKLCHoklch(54.54% 0.078 102.3)
XYZxyz(14.6414, 16.3955, 6.2635)
Luminance0.1640 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797239 #394079
analogous
#795239 #797239 #607939
triadic
#797239 #397972 #723979
tetradic
#797239 #397952 #394079 #793960
square
#797239 #397952 #394079 #793960
split-complementary
#797239 #396079 #523979
monochromatic
#262412 #4F4B25 #797239 #A3994D #BCB471

Accessibility & contrast

On white

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

On black

4.28
#797239 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##797239#FFFFFF#000000##FFFFFF
##7972391.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #797239;
/* rgb */ color: rgb(121, 114, 57);
/* oklch */ color: oklch(54.5% 0.078 102.3);
Tailwind
colors: {
  custom: {
    50: '#a19a71',
    500: '#797239',
    950: '#000000',
  },
}
SCSS
$custom: #797239;
$custom-light: #a19a71;
$custom-dark: #000000;
JSON
{
  "hex": "#797239",
  "rgb": {
    "r": 121,
    "g": 114,
    "b": 57
  },
  "hsl": {
    "h": 53.438,
    "s": 35.955,
    "l": 34.902
  },
  "oklch": {
    "l": 0.54538,
    "c": 0.07816,
    "h": 102.3
  },
  "luminance": 0.16395
}

Semantic roles & 50–950 ramp

primary
#797239
secondary
#696FA5
accent
#68CC5C
background
#FAF9F6
surface
#F4F2EC
border
#CECCC7
text
#0F0E08
muted
#7F7E7B

Preview Lab

Preview with #797239

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

Preview Lab → · Contrast checker → · Palette generator →

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