#797B24#797B24

#797B24 is a mid, moderate yellow. Relative luminance 0.184; OKLCH L 56.4% C 0.108 H 110.7°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#797B24
RGBrgb(121, 123, 36)
HSLhsl(61, 55%, 31%)
HSVhsv(61, 71%, 48%)
CMYKcmyk(1.6%, 0%, 70.7%, 51.8%)
CIE-LABlab(49.93, -12.26, 45.00)
CIE-LCHlch(49.93, 46.64, 105.24°)
OKLaboklab(56.41% -0.038 0.1006)
OKLCHoklch(56.41% 0.108 110.7)
XYZxyz(15.2870, 18.3586, 4.4070)
Luminance0.1836 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797B24 #26247B
analogous
#7B5124 #797B24 #4D7B24
triadic
#797B24 #24797B #7B2479
tetradic
#797B24 #247B51 #26247B #7B244D
square
#797B24 #247B51 #26247B #7B244D
split-complementary
#797B24 #244D7B #51247B
monochromatic
#1C1C08 #4A4C16 #797B24 #A8AA32 #C8CB4E

Accessibility & contrast

On white

4.50
#797B24 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#797B24 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797B24
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797B24#FFFFFF#000000##000000
##797B241.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#857516
Deuteranopia (green-blind)
#86782A
Tritanopia (blue-blind)
#82736A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797b24;
/* rgb */ color: rgb(121, 123, 36);
/* oklch */ color: oklch(56.4% 0.108 110.7);
Tailwind
colors: {
  custom: {
    50: '#a2a165',
    500: '#797b24',
    950: '#000000',
  },
}
SCSS
$custom: #797b24;
$custom-light: #a2a165;
$custom-dark: #000000;
JSON
{
  "hex": "#797b24",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 36
  },
  "hsl": {
    "h": 61.379,
    "s": 54.717,
    "l": 31.176
  },
  "oklch": {
    "l": 0.56413,
    "c": 0.10755,
    "h": 110.7
  },
  "luminance": 0.18358
}

Semantic roles & 50–950 ramp

primary
#797B24
secondary
#504DAD
accent
#4ADE4D
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #797B24

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

Preview Lab → · Contrast checker → · Palette generator →

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