#797D13#797D13

#797D13 is a mid, moderate yellow. Relative luminance 0.188; OKLCH L 56.8% C 0.120 H 112.0°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#797D13
RGBrgb(121, 125, 19)
HSLhsl(62, 74%, 28%)
HSVhsv(62, 85%, 49%)
CMYKcmyk(3.2%, 0%, 84.8%, 51%)
CIE-LABlab(50.43, -14.12, 51.35)
CIE-LCHlch(50.43, 53.26, 105.37°)
OKLaboklab(56.78% -0.0447 0.1109)
OKLCHoklch(56.78% 0.12 112)
XYZxyz(15.3369, 18.7796, 3.4329)
Luminance0.1878 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797D13 #17137D
analogous
#7D4C13 #797D13 #447D13
triadic
#797D13 #13797D #7D1379
tetradic
#797D13 #137D4C #17137D #7D1344
square
#797D13 #137D4C #17137D #7D1344
split-complementary
#797D13 #13447D #4C137D
monochromatic
#1A1B04 #46480B #797D13 #ACB21B #D8DF2C

Accessibility & contrast

On white

4.42
#797D13 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#797D13 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797D13
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797D13#FFFFFF#000000##000000
##797D131.004.424.764.76
#FFFFFF4.421.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#877700
Deuteranopia (green-blind)
#88791E
Tritanopia (blue-blind)
#82756A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #797d13;
/* rgb */ color: rgb(121, 125, 19);
/* oklch */ color: oklch(56.8% 0.120 112.0);
Tailwind
colors: {
  custom: {
    50: '#a3a25d',
    500: '#797d13',
    950: '#000000',
  },
}
SCSS
$custom: #797d13;
$custom-light: #a3a25d;
$custom-dark: #000000;
JSON
{
  "hex": "#797d13",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 19
  },
  "hsl": {
    "h": 62.264,
    "s": 73.611,
    "l": 28.235
  },
  "oklch": {
    "l": 0.56783,
    "c": 0.11954,
    "h": 112
  },
  "luminance": 0.18779
}

Semantic roles & 50–950 ramp

primary
#797D13
secondary
#3E39B3
accent
#38F03E
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100F05
muted
#7F7E79

Preview Lab

Preview with #797D13

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

Preview Lab → · Contrast checker → · Palette generator →

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