#797F1E#797F1E

#797F1E is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.3% C 0.116 H 113.1°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#797F1E
RGBrgb(121, 127, 30)
HSLhsl(64, 62%, 31%)
HSVhsv(64, 76%, 50%)
CMYKcmyk(4.7%, 0%, 76.4%, 50.2%)
CIE-LABlab(51.08, -14.74, 48.44)
CIE-LCHlch(51.08, 50.63, 106.93°)
OKLaboklab(57.32% -0.0455 0.1068)
OKLCHoklch(57.32% 0.116 113.1)
XYZxyz(15.7094, 19.3378, 4.1331)
Luminance0.1934 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797F1E #241E7F
analogous
#7F541E #797F1E #487F1E
triadic
#797F1E #1E797F #7F1E79
tetradic
#797F1E #1E7F54 #241E7F #7F1E48
square
#797F1E #1E7F54 #241E7F #7F1E48
split-complementary
#797F1E #1E487F #541E7F
monochromatic
#1B1C07 #4A4D12 #797F1E #A8B12A #CAD344

Accessibility & contrast

On white

4.31
#797F1E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#797F1E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797F1E
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797F1E#FFFFFF#000000##000000
##797F1E1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#897909
Deuteranopia (green-blind)
#897B26
Tritanopia (blue-blind)
#82776D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #797f1e;
/* rgb */ color: rgb(121, 127, 30);
/* oklch */ color: oklch(57.3% 0.116 113.1);
Tailwind
colors: {
  custom: {
    50: '#a3a362',
    500: '#797f1e',
    950: '#000000',
  },
}
SCSS
$custom: #797f1e;
$custom-light: #a3a362;
$custom-dark: #000000;
JSON
{
  "hex": "#797f1e",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 30
  },
  "hsl": {
    "h": 63.711,
    "s": 61.783,
    "l": 30.784
  },
  "oklch": {
    "l": 0.57322,
    "c": 0.11606,
    "h": 113.1
  },
  "luminance": 0.19337
}

Semantic roles & 50–950 ramp

primary
#797F1E
secondary
#4D47B2
accent
#43E54D
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F05
muted
#7F7F7A

Preview Lab

Preview with #797F1E

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

Preview Lab → · Contrast checker → · Palette generator →

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