#797038#797038

#797038 is a mid, moderate yellow. Relative luminance 0.159; OKLCH L 54.1% C 0.077 H 100.3°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#797038
RGBrgb(121, 112, 56)
HSLhsl(52, 37%, 35%)
HSVhsv(52, 54%, 47%)
CMYKcmyk(0%, 7.4%, 53.7%, 52.5%)
CIE-LABlab(46.89, -4.59, 32.08)
CIE-LCHlch(46.89, 32.41, 98.14°)
OKLaboklab(54.06% -0.0138 0.0759)
OKLCHoklch(54.06% 0.077 100.3)
XYZxyz(14.3936, 15.9393, 6.0590)
Luminance0.1594 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797038 #384179
analogous
#794F38 #797038 #627938
triadic
#797038 #387970 #703879
tetradic
#797038 #38794F #384179 #793862
square
#797038 #38794F #384179 #793862
split-complementary
#797038 #386279 #4F3879
monochromatic
#252311 #4F4925 #797038 #A3974B #BCB26F

Accessibility & contrast

On white

5.01
#797038 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#797038 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797038
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797038#FFFFFF#000000##FFFFFF
##7970381.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796D33
Deuteranopia (green-blind)
#7C713A
Tritanopia (blue-blind)
#816963
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #797038;
/* rgb */ color: rgb(121, 112, 56);
/* oklch */ color: oklch(54.1% 0.077 100.3);
Tailwind
colors: {
  custom: {
    50: '#a19870',
    500: '#797038',
    950: '#000000',
  },
}
SCSS
$custom: #797038;
$custom-light: #a19870;
$custom-dark: #000000;
JSON
{
  "hex": "#797038",
  "rgb": {
    "r": 121,
    "g": 112,
    "b": 56
  },
  "hsl": {
    "h": 51.692,
    "s": 36.723,
    "l": 34.706
  },
  "oklch": {
    "l": 0.54062,
    "c": 0.07713,
    "h": 100.3
  },
  "luminance": 0.15939
}

Semantic roles & 50–950 ramp

primary
#797038
secondary
#6770A5
accent
#6BCD5B
background
#FAF9F6
surface
#F4F2EC
border
#CECCC7
text
#0F0D07
muted
#7F7E7A

Preview Lab

Preview with #797038

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

Preview Lab → · Contrast checker → · Palette generator →

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