#797D1B#797D1B

#797D1B is a mid, moderate yellow. Relative luminance 0.188; OKLCH L 56.8% C 0.116 H 112.0°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#797D1B
RGBrgb(121, 125, 27)
HSLhsl(62, 64%, 30%)
HSVhsv(62, 78%, 49%)
CMYKcmyk(3.2%, 0%, 78.4%, 51%)
CIE-LABlab(50.47, -13.81, 48.92)
CIE-LCHlch(50.47, 50.83, 105.76°)
OKLaboklab(56.83% -0.0432 0.1072)
OKLCHoklch(56.83% 0.116 112)
XYZxyz(15.4171, 18.8117, 3.8556)
Luminance0.1881 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797D1B #1F1B7D
analogous
#7D501B #797D1B #487D1B
triadic
#797D1B #1B797D #7D1B79
tetradic
#797D1B #1B7D50 #1F1B7D #7D1B48
square
#797D1B #1B7D50 #1F1B7D #7D1B48
split-complementary
#797D1B #1B487D #501B7D
monochromatic
#181905 #484B10 #797D1B #AAAF26 #CFD53D

Accessibility & contrast

On white

4.41
#797D1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#797D1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797D1B
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797D1B#FFFFFF#000000##000000
##797D1B1.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#877703
Deuteranopia (green-blind)
#877923
Tritanopia (blue-blind)
#82756B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #797d1b;
/* rgb */ color: rgb(121, 125, 27);
/* oklch */ color: oklch(56.8% 0.116 112.0);
Tailwind
colors: {
  custom: {
    50: '#a3a260',
    500: '#797d1b',
    950: '#000000',
  },
}
SCSS
$custom: #797d1b;
$custom-light: #a3a260;
$custom-dark: #000000;
JSON
{
  "hex": "#797d1b",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 27
  },
  "hsl": {
    "h": 62.449,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.56825,
    "c": 0.11558,
    "h": 112
  },
  "luminance": 0.18811
}

Semantic roles & 50–950 ramp

primary
#797D1B
secondary
#4743B1
accent
#40E747
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0F05
muted
#7F7E79

Preview Lab

Preview with #797D1B

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

Preview Lab → · Contrast checker → · Palette generator →

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