#797B30#797B30

#797B30 is a mid, moderate yellow. Relative luminance 0.184; OKLCH L 56.5% C 0.098 H 110.6°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#797B30
RGBrgb(121, 123, 48)
HSLhsl(62, 44%, 34%)
HSVhsv(62, 61%, 48%)
CMYKcmyk(1.6%, 0%, 61%, 51.8%)
CIE-LABlab(50.03, -11.43, 39.74)
CIE-LCHlch(50.03, 41.35, 106.05°)
OKLaboklab(56.53% -0.0343 0.0914)
OKLCHoklch(56.53% 0.098 110.6)
XYZxyz(15.5020, 18.4446, 5.5393)
Luminance0.1844 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797B30 #32307B
analogous
#7B5730 #797B30 #537B30
triadic
#797B30 #30797B #7B3079
tetradic
#797B30 #307B57 #32307B #7B3053
square
#797B30 #307B57 #32307B #7B3053
split-complementary
#797B30 #30537B #57307B
monochromatic
#22230E #4E4F1F #797B30 #A4A741 #C0C263

Accessibility & contrast

On white

4.48
#797B30 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#797B30 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797B30
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797B30#FFFFFF#000000##000000
##797B301.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#847628
Deuteranopia (green-blind)
#857834
Tritanopia (blue-blind)
#81746B
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797b30;
/* rgb */ color: rgb(121, 123, 48);
/* oklch */ color: oklch(56.5% 0.098 110.6);
Tailwind
colors: {
  custom: {
    50: '#a2a16c',
    500: '#797b30',
    950: '#000000',
  },
}
SCSS
$custom: #797b30;
$custom-light: #a2a16c;
$custom-dark: #000000;
JSON
{
  "hex": "#797b30",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 48
  },
  "hsl": {
    "h": 61.6,
    "s": 43.86,
    "l": 33.529
  },
  "oklch": {
    "l": 0.56528,
    "c": 0.09764,
    "h": 110.6
  },
  "luminance": 0.18444
}

Semantic roles & 50–950 ramp

primary
#797B30
secondary
#5F5DA9
accent
#54D458
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E07
muted
#7F7E7A

Preview Lab

Preview with #797B30

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

Preview Lab → · Contrast checker → · Palette generator →

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