#797D17#797D17

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

Color values

HEX#797D17
RGBrgb(121, 125, 23)
HSLhsl(62, 69%, 29%)
HSVhsv(62, 82%, 49%)
CMYKcmyk(3.2%, 0%, 81.6%, 51%)
CIE-LABlab(50.45, -13.98, 50.20)
CIE-LCHlch(50.45, 52.11, 105.56°)
OKLaboklab(56.8% -0.044 0.1092)
OKLCHoklch(56.8% 0.118 112)
XYZxyz(15.3740, 18.7944, 3.6283)
Luminance0.1879 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797D17 #1B177D
analogous
#7D4E17 #797D17 #467D17
triadic
#797D17 #17797D #7D1779
tetradic
#797D17 #177D4E #1B177D #7D1746
square
#797D17 #177D4E #1B177D #7D1746
split-complementary
#797D17 #17467D #4E177D
monochromatic
#191A05 #47490D #797D17 #ABB121 #D3DA35

Accessibility & contrast

On white

4.41
#797D17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##797D17#FFFFFF#000000##000000
##797D171.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #797d17;
/* rgb */ color: rgb(121, 125, 23);
/* oklch */ color: oklch(56.8% 0.118 112.0);
Tailwind
colors: {
  custom: {
    50: '#a3a25f',
    500: '#797d17',
    950: '#000000',
  },
}
SCSS
$custom: #797d17;
$custom-light: #a3a25f;
$custom-dark: #000000;
JSON
{
  "hex": "#797d17",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 23
  },
  "hsl": {
    "h": 62.353,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.56802,
    "c": 0.1177,
    "h": 112
  },
  "luminance": 0.18794
}

Semantic roles & 50–950 ramp

primary
#797D17
secondary
#433EB2
accent
#3CEC43
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100F05
muted
#7F7E79

Preview Lab

Preview with #797D17

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

Preview Lab → · Contrast checker → · Palette generator →

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