#797E1E#797E1E

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

Color values

HEX#797E1E
RGBrgb(121, 126, 30)
HSLhsl(63, 62%, 31%)
HSVhsv(63, 76%, 49%)
CMYKcmyk(4%, 0%, 76.2%, 50.6%)
CIE-LABlab(50.78, -14.21, 48.16)
CIE-LCHlch(50.78, 50.21, 106.44°)
OKLaboklab(57.08% -0.044 0.1062)
OKLCHoklch(57.08% 0.115 112.5)
XYZxyz(15.5809, 19.0808, 4.0902)
Luminance0.1908 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797E1E #231E7E
analogous
#7E531E #797E1E #497E1E
triadic
#797E1E #1E797E #7E1E79
tetradic
#797E1E #1E7E53 #231E7E #7E1E49
square
#797E1E #1E7E53 #231E7E #7E1E49
split-complementary
#797E1E #1E497E #531E7E
monochromatic
#1A1B06 #4A4D12 #797E1E #A8AF2A #CBD244

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797E1E#FFFFFF#000000##000000
##797E1E1.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)
#887809
Deuteranopia (green-blind)
#887A26
Tritanopia (blue-blind)
#82766C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #797e1e;
/* rgb */ color: rgb(121, 126, 30);
/* oklch */ color: oklch(57.1% 0.115 112.5);
Tailwind
colors: {
  custom: {
    50: '#a3a362',
    500: '#797e1e',
    950: '#000000',
  },
}
SCSS
$custom: #797e1e;
$custom-light: #a3a362;
$custom-dark: #000000;
JSON
{
  "hex": "#797e1e",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 30
  },
  "hsl": {
    "h": 63.125,
    "s": 61.538,
    "l": 30.588
  },
  "oklch": {
    "l": 0.57083,
    "c": 0.11493,
    "h": 112.5
  },
  "luminance": 0.1908
}

Semantic roles & 50–950 ramp

primary
#797E1E
secondary
#4C47B1
accent
#43E54C
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F05
muted
#7F7F7A

Preview Lab

Preview with #797E1E

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

Preview Lab → · Contrast checker → · Palette generator →

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