#797B2D#797B2D

#797B2D is a mid, moderate yellow. Relative luminance 0.184; OKLCH L 56.5% C 0.100 H 110.6°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#797B2D
RGBrgb(121, 123, 45)
HSLhsl(62, 46%, 33%)
HSVhsv(62, 63%, 48%)
CMYKcmyk(1.6%, 0%, 63.4%, 51.8%)
CIE-LABlab(50.00, -11.66, 41.12)
CIE-LCHlch(50.00, 42.74, 105.83°)
OKLaboklab(56.5% -0.0353 0.0939)
OKLCHoklch(56.5% 0.1 110.6)
XYZxyz(15.4422, 18.4207, 5.2242)
Luminance0.1842 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797B2D #2F2D7B
analogous
#7B562D #797B2D #527B2D
triadic
#797B2D #2D797B #7B2D79
tetradic
#797B2D #2D7B56 #2F2D7B #7B2D52
square
#797B2D #2D7B56 #2F2D7B #7B2D52
split-complementary
#797B2D #2D527B #562D7B
monochromatic
#21210C #4D4E1D #797B2D #A5A83D #C2C45E

Accessibility & contrast

On white

4.48
#797B2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#797B2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797B2D
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797B2D#FFFFFF#000000##000000
##797B2D1.004.484.684.68
#FFFFFF4.481.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#847624
Deuteranopia (green-blind)
#857832
Tritanopia (blue-blind)
#81746B
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797b2d;
/* rgb */ color: rgb(121, 123, 45);
/* oklch */ color: oklch(56.5% 0.100 110.6);
Tailwind
colors: {
  custom: {
    50: '#a2a16a',
    500: '#797b2d',
    950: '#000000',
  },
}
SCSS
$custom: #797b2d;
$custom-light: #a2a16a;
$custom-dark: #000000;
JSON
{
  "hex": "#797b2d",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 45
  },
  "hsl": {
    "h": 61.538,
    "s": 46.429,
    "l": 32.941
  },
  "oklch": {
    "l": 0.56496,
    "c": 0.10033,
    "h": 110.6
  },
  "luminance": 0.1842
}

Semantic roles & 50–950 ramp

primary
#797B2D
secondary
#5B59AB
accent
#52D655
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E07
muted
#7F7E7A

Preview Lab

Preview with #797B2D

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

Preview Lab → · Contrast checker → · Palette generator →

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