#797E30#797E30

#797E30 is a mid, moderate yellow. Relative luminance 0.192; OKLCH L 57.2% C 0.101 H 112.6°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#797E30
RGBrgb(121, 126, 48)
HSLhsl(64, 45%, 34%)
HSVhsv(64, 62%, 49%)
CMYKcmyk(4%, 0%, 61.9%, 50.6%)
CIE-LABlab(50.92, -13.07, 40.72)
CIE-LCHlch(50.92, 42.76, 107.79°)
OKLaboklab(57.24% -0.0389 0.0935)
OKLCHoklch(57.24% 0.101 112.6)
XYZxyz(15.8799, 19.2004, 5.6653)
Luminance0.1920 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797E30 #35307E
analogous
#7E5C30 #797E30 #527E30
triadic
#797E30 #30797E #7E3079
tetradic
#797E30 #307E5C #35307E #7E3052
square
#797E30 #307E5C #35307E #7E3052
split-complementary
#797E30 #30527E #5C307E
monochromatic
#24250E #4E521F #797E30 #A4AA41 #BEC464

Accessibility & contrast

On white

4.34
#797E30 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#797E30 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797E30
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797E30#FFFFFF#000000##000000
##797E301.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#877827
Deuteranopia (green-blind)
#877A35
Tritanopia (blue-blind)
#81776D
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #797e30;
/* rgb */ color: rgb(121, 126, 48);
/* oklch */ color: oklch(57.2% 0.101 112.6);
Tailwind
colors: {
  custom: {
    50: '#a2a36c',
    500: '#797e30',
    950: '#000000',
  },
}
SCSS
$custom: #797e30;
$custom-light: #a2a36c;
$custom-dark: #000000;
JSON
{
  "hex": "#797e30",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 48
  },
  "hsl": {
    "h": 63.846,
    "s": 44.828,
    "l": 34.118
  },
  "oklch": {
    "l": 0.57239,
    "c": 0.10127,
    "h": 112.6
  },
  "luminance": 0.192
}

Semantic roles & 50–950 ramp

primary
#797E30
secondary
#635FAB
accent
#53D55C
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #797E30

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

Preview Lab → · Contrast checker → · Palette generator →

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