#797E1D#797E1D

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

Color values

HEX#797E1D
RGBrgb(121, 126, 29)
HSLhsl(63, 63%, 30%)
HSVhsv(63, 77%, 49%)
CMYKcmyk(4%, 0%, 77%, 50.6%)
CIE-LABlab(50.78, -14.25, 48.51)
CIE-LCHlch(50.78, 50.56, 106.37°)
OKLaboklab(57.08% -0.0443 0.1067)
OKLCHoklch(57.08% 0.116 112.5)
XYZxyz(15.5683, 19.0757, 4.0240)
Luminance0.1908 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797E1D #221D7E
analogous
#7E521D #797E1D #487E1D
triadic
#797E1D #1D797E #7E1D79
tetradic
#797E1D #1D7E52 #221D7E #7E1D48
square
#797E1D #1D7E52 #221D7E #7E1D48
split-complementary
#797E1D #1D487E #521D7E
monochromatic
#191B06 #494C12 #797E1D #A9B028 #CCD342

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797E1D#FFFFFF#000000##000000
##797E1D1.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#887807
Deuteranopia (green-blind)
#887A25
Tritanopia (blue-blind)
#82766C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #797e1d;
/* rgb */ color: rgb(121, 126, 29);
/* oklch */ color: oklch(57.1% 0.116 112.5);
Tailwind
colors: {
  custom: {
    50: '#a3a361',
    500: '#797e1d',
    950: '#000000',
  },
}
SCSS
$custom: #797e1d;
$custom-light: #a3a361;
$custom-dark: #000000;
JSON
{
  "hex": "#797e1d",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 29
  },
  "hsl": {
    "h": 63.093,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.57076,
    "c": 0.11553,
    "h": 112.5
  },
  "luminance": 0.19075
}

Semantic roles & 50–950 ramp

primary
#797E1D
secondary
#4B45B1
accent
#42E64B
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F05
muted
#7F7F7A

Preview Lab

Preview with #797E1D

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

Preview Lab → · Contrast checker → · Palette generator →

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