#797C38#797C38

#797C38 is a mid, moderate yellow. Relative luminance 0.188; OKLCH L 56.9% C 0.091 H 111.3°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#797C38
RGBrgb(121, 124, 56)
HSLhsl(63, 38%, 35%)
HSVhsv(63, 55%, 49%)
CMYKcmyk(2.4%, 0%, 54.8%, 51.4%)
CIE-LABlab(50.41, -11.30, 36.22)
CIE-LCHlch(50.41, 37.94, 107.32°)
OKLaboklab(56.86% -0.033 0.0849)
OKLCHoklch(56.86% 0.091 111.3)
XYZxyz(15.8070, 18.7661, 6.5302)
Luminance0.1877 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797C38 #3B387C
analogous
#7C5D38 #797C38 #577C38
triadic
#797C38 #38797C #7C3879
tetradic
#797C38 #387C5D #3B387C #7C3857
square
#797C38 #387C5D #3B387C #7C3857
split-complementary
#797C38 #38577C #5D387C
monochromatic
#272812 #505225 #797C38 #A2A64B #BBBE70

Accessibility & contrast

On white

4.42
#797C38 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#797C38 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797C38
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797C38#FFFFFF#000000##000000
##797C381.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#857731
Deuteranopia (green-blind)
#85793C
Tritanopia (blue-blind)
#80756D
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #797c38;
/* rgb */ color: rgb(121, 124, 56);
/* oklch */ color: oklch(56.9% 0.091 111.3);
Tailwind
colors: {
  custom: {
    50: '#a1a171',
    500: '#797c38',
    950: '#000000',
  },
}
SCSS
$custom: #797c38;
$custom-light: #a1a171;
$custom-dark: #000000;
JSON
{
  "hex": "#797c38",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 56
  },
  "hsl": {
    "h": 62.647,
    "s": 37.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.5686,
    "c": 0.09106,
    "h": 111.3
  },
  "luminance": 0.18766
}

Semantic roles & 50–950 ramp

primary
#797C38
secondary
#6B68A7
accent
#5ACE5F
background
#FAF9F6
surface
#F4F2EC
border
#CECCC7
text
#0F0F08
muted
#7F7E7B

Preview Lab

Preview with #797C38

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

Preview Lab → · Contrast checker → · Palette generator →

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