#797D30#797D30

#797D30 is a mid, moderate yellow. Relative luminance 0.189; OKLCH L 57.0% C 0.100 H 112.0°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#797D30
RGBrgb(121, 125, 48)
HSLhsl(63, 45%, 34%)
HSVhsv(63, 62%, 49%)
CMYKcmyk(3.2%, 0%, 61.6%, 51%)
CIE-LABlab(50.62, -12.52, 40.39)
CIE-LCHlch(50.62, 42.29, 107.23°)
OKLaboklab(57% -0.0374 0.0928)
OKLCHoklch(57% 0.1 112)
XYZxyz(15.7527, 18.9459, 5.6228)
Luminance0.1895 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797D30 #34307D
analogous
#7D5B30 #797D30 #537D30
triadic
#797D30 #30797D #7D3079
tetradic
#797D30 #307D5B #34307D #7D3053
square
#797D30 #307D5B #34307D #7D3053
split-complementary
#797D30 #30537D #5B307D
monochromatic
#23250E #4E511F #797D30 #A4A941 #BEC364

Accessibility & contrast

On white

4.38
#797D30 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#797D30 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797D30
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797D30#FFFFFF#000000##000000
##797D301.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#867727
Deuteranopia (green-blind)
#867935
Tritanopia (blue-blind)
#81766D
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #797d30;
/* rgb */ color: rgb(121, 125, 48);
/* oklch */ color: oklch(57.0% 0.100 112.0);
Tailwind
colors: {
  custom: {
    50: '#a2a26c',
    500: '#797d30',
    950: '#000000',
  },
}
SCSS
$custom: #797d30;
$custom-light: #a2a26c;
$custom-dark: #000000;
JSON
{
  "hex": "#797d30",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 48
  },
  "hsl": {
    "h": 63.117,
    "s": 44.509,
    "l": 33.922
  },
  "oklch": {
    "l": 0.57002,
    "c": 0.10005,
    "h": 112
  },
  "luminance": 0.18946
}

Semantic roles & 50–950 ramp

primary
#797D30
secondary
#625EAB
accent
#54D45A
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F07
muted
#7F7E7A

Preview Lab

Preview with #797D30

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

Preview Lab → · Contrast checker → · Palette generator →

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