#797338#797338

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

Color values

HEX#797338
RGBrgb(121, 115, 56)
HSLhsl(54, 37%, 35%)
HSVhsv(54, 54%, 47%)
CMYKcmyk(0%, 5%, 53.7%, 52.5%)
CIE-LABlab(47.77, -6.29, 33.12)
CIE-LCHlch(47.77, 33.71, 100.75°)
OKLaboklab(54.76% -0.0187 0.0782)
OKLCHoklch(54.76% 0.08 103.5)
XYZxyz(14.7301, 16.6124, 6.1712)
Luminance0.1661 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797338 #383E79
analogous
#795338 #797338 #5E7938
triadic
#797338 #387973 #733879
tetradic
#797338 #387953 #383E79 #79385E
square
#797338 #387953 #383E79 #79385E
split-complementary
#797338 #385E79 #533879
monochromatic
#252311 #4F4B25 #797338 #A39B4B #BCB56F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797338#FFFFFF#000000##FFFFFF
##7973381.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)
#7C7033
Deuteranopia (green-blind)
#7E733B
Tritanopia (blue-blind)
#816C65
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #797338;
/* rgb */ color: rgb(121, 115, 56);
/* oklch */ color: oklch(54.8% 0.080 103.5);
Tailwind
colors: {
  custom: {
    50: '#a19b70',
    500: '#797338',
    950: '#000000',
  },
}
SCSS
$custom: #797338;
$custom-light: #a19b70;
$custom-dark: #000000;
JSON
{
  "hex": "#797338",
  "rgb": {
    "r": 121,
    "g": 115,
    "b": 56
  },
  "hsl": {
    "h": 54.462,
    "s": 36.723,
    "l": 34.706
  },
  "oklch": {
    "l": 0.54755,
    "c": 0.08036,
    "h": 103.5
  },
  "luminance": 0.16612
}

Semantic roles & 50–950 ramp

primary
#797338
secondary
#676DA5
accent
#66CD5B
background
#FAF9F6
surface
#F4F2EC
border
#CECCC7
text
#0F0E07
muted
#7F7E7A

Preview Lab

Preview with #797338

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

Preview Lab → · Contrast checker → · Palette generator →

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