#797F19#797F19

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

Color values

HEX#797F19
RGBrgb(121, 127, 25)
HSLhsl(64, 67%, 30%)
HSVhsv(64, 80%, 50%)
CMYKcmyk(4.7%, 0%, 80.3%, 50.2%)
CIE-LABlab(51.05, -14.97, 50.12)
CIE-LCHlch(51.05, 52.30, 106.63°)
OKLaboklab(57.29% -0.0466 0.1094)
OKLCHoklch(57.29% 0.119 113.1)
XYZxyz(15.6505, 19.3142, 3.8231)
Luminance0.1931 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797F19 #1F197F
analogous
#7F5219 #797F19 #467F19
triadic
#797F19 #19797F #7F1979
tetradic
#797F19 #197F52 #1F197F #7F1946
square
#797F19 #197F52 #1F197F #7F1946
split-complementary
#797F19 #19467F #52197F
monochromatic
#181A05 #484C0F #797F19 #AAB223 #CFD83A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797F19#FFFFFF#000000##000000
##797F191.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)
#897900
Deuteranopia (green-blind)
#897B22
Tritanopia (blue-blind)
#82776C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #797f19;
/* rgb */ color: rgb(121, 127, 25);
/* oklch */ color: oklch(57.3% 0.119 113.1);
Tailwind
colors: {
  custom: {
    50: '#a3a360',
    500: '#797f19',
    950: '#000000',
  },
}
SCSS
$custom: #797f19;
$custom-light: #a3a360;
$custom-dark: #000000;
JSON
{
  "hex": "#797f19",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 25
  },
  "hsl": {
    "h": 63.529,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.57292,
    "c": 0.11888,
    "h": 113.1
  },
  "luminance": 0.19314
}

Semantic roles & 50–950 ramp

primary
#797F19
secondary
#4741B3
accent
#3EEA48
background
#FAFAF5
surface
#F4F3EA
border
#CECDC6
text
#0F0F05
muted
#7F7F79

Preview Lab

Preview with #797F19

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

Preview Lab → · Contrast checker → · Palette generator →

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