#797C30#797C30

#797C30 is a mid, moderate yellow. Relative luminance 0.187; OKLCH L 56.8% C 0.099 H 111.3°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#797C30
RGBrgb(121, 124, 48)
HSLhsl(62, 44%, 34%)
HSVhsv(62, 61%, 49%)
CMYKcmyk(2.4%, 0%, 61.3%, 51.4%)
CIE-LABlab(50.33, -11.98, 40.06)
CIE-LCHlch(50.33, 41.82, 106.65°)
OKLaboklab(56.77% -0.0359 0.0921)
OKLCHoklch(56.77% 0.099 111.3)
XYZxyz(15.6267, 18.6940, 5.5809)
Luminance0.1869 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797C30 #33307C
analogous
#7C5930 #797C30 #537C30
triadic
#797C30 #30797C #7C3079
tetradic
#797C30 #307C59 #33307C #7C3053
square
#797C30 #307C59 #33307C #7C3053
split-complementary
#797C30 #30537C #59307C
monochromatic
#23240E #4E501F #797C30 #A4A841 #BFC364

Accessibility & contrast

On white

4.43
#797C30 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#797C30 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797C30
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797C30#FFFFFF#000000##000000
##797C301.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#857727
Deuteranopia (green-blind)
#867935
Tritanopia (blue-blind)
#81756C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #797c30;
/* rgb */ color: rgb(121, 124, 48);
/* oklch */ color: oklch(56.8% 0.099 111.3);
Tailwind
colors: {
  custom: {
    50: '#a2a16c',
    500: '#797c30',
    950: '#000000',
  },
}
SCSS
$custom: #797c30;
$custom-light: #a2a16c;
$custom-dark: #000000;
JSON
{
  "hex": "#797c30",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 48
  },
  "hsl": {
    "h": 62.368,
    "s": 44.186,
    "l": 33.725
  },
  "oklch": {
    "l": 0.56765,
    "c": 0.09884,
    "h": 111.3
  },
  "luminance": 0.18694
}

Semantic roles & 50–950 ramp

primary
#797C30
secondary
#615EAA
accent
#54D459
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F07
muted
#7F7E7A

Preview Lab

Preview with #797C30

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

Preview Lab → · Contrast checker → · Palette generator →

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