#797E24#797E24

#797E24 is a mid, moderate yellow. Relative luminance 0.191; OKLCH L 57.1% C 0.111 H 112.5°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#797E24
RGBrgb(121, 126, 36)
HSLhsl(63, 56%, 32%)
HSVhsv(63, 71%, 49%)
CMYKcmyk(4%, 0%, 71.4%, 50.6%)
CIE-LABlab(50.82, -13.88, 45.89)
CIE-LCHlch(50.82, 47.95, 106.83°)
OKLaboklab(57.13% -0.0425 0.1025)
OKLCHoklch(57.13% 0.111 112.5)
XYZxyz(15.6649, 19.1144, 4.5330)
Luminance0.1911 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797E24 #29247E
analogous
#7E5624 #797E24 #4C7E24
triadic
#797E24 #24797E #7E2479
tetradic
#797E24 #247E56 #29247E #7E244C
square
#797E24 #247E56 #29247E #7E244C
split-complementary
#797E24 #244C7E #56247E
monochromatic
#1E1F09 #4B4E16 #797E24 #A7AE32 #C6CD50

Accessibility & contrast

On white

4.35
#797E24 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#797E24 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797E24
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797E24#FFFFFF#000000##000000
##797E241.004.354.824.82
#FFFFFF4.351.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#887816
Deuteranopia (green-blind)
#887A2B
Tritanopia (blue-blind)
#81766C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #797e24;
/* rgb */ color: rgb(121, 126, 36);
/* oklch */ color: oklch(57.1% 0.111 112.5);
Tailwind
colors: {
  custom: {
    50: '#a2a365',
    500: '#797e24',
    950: '#000000',
  },
}
SCSS
$custom: #797e24;
$custom-light: #a2a365;
$custom-dark: #000000;
JSON
{
  "hex": "#797e24",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 36
  },
  "hsl": {
    "h": 63.333,
    "s": 55.556,
    "l": 31.765
  },
  "oklch": {
    "l": 0.57127,
    "c": 0.11096,
    "h": 112.5
  },
  "luminance": 0.19114
}

Semantic roles & 50–950 ramp

primary
#797E24
secondary
#534EB0
accent
#49DF51
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #797E24

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

Preview Lab → · Contrast checker → · Palette generator →

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