#797B38#797B38

#797B38 is a mid, moderate yellow. Relative luminance 0.185; OKLCH L 56.6% C 0.090 H 110.5°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#797B38
RGBrgb(121, 123, 56)
HSLhsl(62, 37%, 35%)
HSVhsv(62, 54%, 48%)
CMYKcmyk(1.6%, 0%, 54.5%, 51.8%)
CIE-LABlab(50.12, -10.75, 35.88)
CIE-LCHlch(50.12, 37.45, 106.68°)
OKLaboklab(56.62% -0.0314 0.0841)
OKLCHoklch(56.62% 0.09 110.5)
XYZxyz(15.6823, 18.5167, 6.4886)
Luminance0.1852 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797B38 #3A387B
analogous
#7B5B38 #797B38 #577B38
triadic
#797B38 #38797B #7B3879
tetradic
#797B38 #387B5B #3A387B #7B3857
square
#797B38 #387B5B #3A387B #7B3857
split-complementary
#797B38 #38577B #5B387B
monochromatic
#262712 #505125 #797B38 #A2A54B #BBBE70

Accessibility & contrast

On white

4.47
#797B38 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#797B38 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797B38
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797B38#FFFFFF#000000##000000
##797B381.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#847632
Deuteranopia (green-blind)
#84783C
Tritanopia (blue-blind)
#81746C
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797b38;
/* rgb */ color: rgb(121, 123, 56);
/* oklch */ color: oklch(56.6% 0.090 110.5);
Tailwind
colors: {
  custom: {
    50: '#a1a171',
    500: '#797b38',
    950: '#000000',
  },
}
SCSS
$custom: #797b38;
$custom-light: #a1a171;
$custom-dark: #000000;
JSON
{
  "hex": "#797b38",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 56
  },
  "hsl": {
    "h": 61.791,
    "s": 37.43,
    "l": 35.098
  },
  "oklch": {
    "l": 0.56624,
    "c": 0.08982,
    "h": 110.5
  },
  "luminance": 0.18516
}

Semantic roles & 50–950 ramp

primary
#797B38
secondary
#6A68A7
accent
#5ACD5E
background
#FAF9F6
surface
#F4F2EC
border
#CECCC7
text
#0F0E08
muted
#7F7E7B

Preview Lab

Preview with #797B38

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

Preview Lab → · Contrast checker → · Palette generator →

#797B38 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva