#797E1B#797E1B

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

Color values

HEX#797E1B
RGBrgb(121, 126, 27)
HSLhsl(63, 65%, 30%)
HSVhsv(63, 79%, 49%)
CMYKcmyk(4%, 0%, 78.6%, 50.6%)
CIE-LABlab(50.76, -14.35, 49.20)
CIE-LCHlch(50.76, 51.24, 106.26°)
OKLaboklab(57.06% -0.0447 0.1078)
OKLCHoklch(57.06% 0.117 112.5)
XYZxyz(15.5444, 19.0662, 3.8980)
Luminance0.1907 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797E1B #201B7E
analogous
#7E511B #797E1B #487E1B
triadic
#797E1B #1B797E #7E1B79
tetradic
#797E1B #1B7E51 #201B7E #7E1B48
square
#797E1B #1B7E51 #201B7E #7E1B48
split-complementary
#797E1B #1B487E #511B7E
monochromatic
#181905 #494C10 #797E1B #A9B026 #CED63E

Accessibility & contrast

On white

4.36
#797E1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#797E1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797E1B
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797E1B#FFFFFF#000000##000000
##797E1B1.004.364.814.81
#FFFFFF4.361.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#887802
Deuteranopia (green-blind)
#887A24
Tritanopia (blue-blind)
#82766B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #797e1b;
/* rgb */ color: rgb(121, 126, 27);
/* oklch */ color: oklch(57.1% 0.117 112.5);
Tailwind
colors: {
  custom: {
    50: '#a3a360',
    500: '#797e1b',
    950: '#000000',
  },
}
SCSS
$custom: #797e1b;
$custom-light: #a3a360;
$custom-dark: #000000;
JSON
{
  "hex": "#797e1b",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 27
  },
  "hsl": {
    "h": 63.03,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.57064,
    "c": 0.11669,
    "h": 112.5
  },
  "luminance": 0.19066
}

Semantic roles & 50–950 ramp

primary
#797E1B
secondary
#4943B2
accent
#40E849
background
#FAFAF5
surface
#F4F3EA
border
#CECDC6
text
#0F0F05
muted
#7F7F79

Preview Lab

Preview with #797E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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