#797F1B#797F1B

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

Color values

HEX#797F1B
RGBrgb(121, 127, 27)
HSLhsl(64, 65%, 30%)
HSVhsv(64, 79%, 50%)
CMYKcmyk(4.7%, 0%, 78.7%, 50.2%)
CIE-LABlab(51.06, -14.88, 49.47)
CIE-LCHlch(51.06, 51.66, 106.74°)
OKLaboklab(57.3% -0.0462 0.1084)
OKLCHoklch(57.3% 0.118 113.1)
XYZxyz(15.6729, 19.3232, 3.9408)
Luminance0.1932 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797F1B #211B7F
analogous
#7F531B #797F1B #477F1B
triadic
#797F1B #1B797F #7F1B79
tetradic
#797F1B #1B7F53 #211B7F #7F1B47
square
#797F1B #1B7F53 #211B7F #7F1B47
split-complementary
#797F1B #1B477F #531B7F
monochromatic
#191A06 #494D10 #797F1B #A9B126 #CDD63E

Accessibility & contrast

On white

4.32
#797F1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#797F1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797F1B
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797F1B#FFFFFF#000000##000000
##797F1B1.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#897902
Deuteranopia (green-blind)
#897B24
Tritanopia (blue-blind)
#82776C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #797f1b;
/* rgb */ color: rgb(121, 127, 27);
/* oklch */ color: oklch(57.3% 0.118 113.1);
Tailwind
colors: {
  custom: {
    50: '#a3a361',
    500: '#797f1b',
    950: '#000000',
  },
}
SCSS
$custom: #797f1b;
$custom-light: #a3a361;
$custom-dark: #000000;
JSON
{
  "hex": "#797f1b",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 27
  },
  "hsl": {
    "h": 63.6,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.57303,
    "c": 0.1178,
    "h": 113.1
  },
  "luminance": 0.19323
}

Semantic roles & 50–950 ramp

primary
#797F1B
secondary
#4A43B3
accent
#40E84A
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F05
muted
#7F7F7A

Preview Lab

Preview with #797F1B

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

Preview Lab → · Contrast checker → · Palette generator →

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