#797D15#797D15

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

Color values

HEX#797D15
RGBrgb(121, 125, 21)
HSLhsl(62, 71%, 29%)
HSVhsv(62, 83%, 49%)
CMYKcmyk(3.2%, 0%, 83.2%, 51%)
CIE-LABlab(50.44, -14.05, 50.79)
CIE-LCHlch(50.44, 52.70, 105.46°)
OKLaboklab(56.79% -0.0444 0.11)
OKLCHoklch(56.79% 0.119 112)
XYZxyz(15.3547, 18.7867, 3.5267)
Luminance0.1879 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797D15 #19157D
analogous
#7D4D15 #797D15 #457D15
triadic
#797D15 #15797D #7D1579
tetradic
#797D15 #157D4D #19157D #7D1545
square
#797D15 #157D4D #19157D #7D1545
split-complementary
#797D15 #15457D #4D157D
monochromatic
#191A04 #46490C #797D15 #ACB11E #D6DC30

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797D15#FFFFFF#000000##000000
##797D151.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)
#88791F
Tritanopia (blue-blind)
#82756A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #797d15;
/* rgb */ color: rgb(121, 125, 21);
/* oklch */ color: oklch(56.8% 0.119 112.0);
Tailwind
colors: {
  custom: {
    50: '#a3a25e',
    500: '#797d15',
    950: '#000000',
  },
}
SCSS
$custom: #797d15;
$custom-light: #a3a25e;
$custom-dark: #000000;
JSON
{
  "hex": "#797d15",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 21
  },
  "hsl": {
    "h": 62.308,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.56792,
    "c": 0.11866,
    "h": 112
  },
  "luminance": 0.18786
}

Semantic roles & 50–950 ramp

primary
#797D15
secondary
#403CB2
accent
#3AEE41
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100F05
muted
#7F7E79

Preview Lab

Preview with #797D15

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

Preview Lab → · Contrast checker → · Palette generator →

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