#797C15#797C15

#797C15 is a mid, moderate yellow. Relative luminance 0.185; OKLCH L 56.6% C 0.118 H 111.4°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#797C15
RGBrgb(121, 124, 21)
HSLhsl(62, 71%, 28%)
HSVhsv(62, 83%, 49%)
CMYKcmyk(2.4%, 0%, 83.1%, 51.4%)
CIE-LABlab(50.14, -13.51, 50.53)
CIE-LCHlch(50.14, 52.31, 104.97°)
OKLaboklab(56.55% -0.0429 0.1095)
OKLCHoklch(56.55% 0.118 111.4)
XYZxyz(15.2287, 18.5348, 3.4847)
Luminance0.1853 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797C15 #18157C
analogous
#7C4B15 #797C15 #457C15
triadic
#797C15 #15797C #7C1579
tetradic
#797C15 #157C4B #18157C #7C1545
square
#797C15 #157C4B #18157C #7C1545
split-complementary
#797C15 #15457C #4B157C
monochromatic
#1A1A04 #46480C #797C15 #ACB01E #D7DC30

Accessibility & contrast

On white

4.46
#797C15 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#797C15 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797C15
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797C15#FFFFFF#000000##000000
##797C151.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#867600
Deuteranopia (green-blind)
#87781F
Tritanopia (blue-blind)
#827469
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797c15;
/* rgb */ color: rgb(121, 124, 21);
/* oklch */ color: oklch(56.6% 0.118 111.4);
Tailwind
colors: {
  custom: {
    50: '#a3a15e',
    500: '#797c15',
    950: '#000000',
  },
}
SCSS
$custom: #797c15;
$custom-light: #a3a15e;
$custom-dark: #000000;
JSON
{
  "hex": "#797c15",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 21
  },
  "hsl": {
    "h": 61.748,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.56553,
    "c": 0.11759,
    "h": 111.4
  },
  "luminance": 0.18534
}

Semantic roles & 50–950 ramp

primary
#797C15
secondary
#3F3CB1
accent
#3AEE3F
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #797C15

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

Preview Lab → · Contrast checker → · Palette generator →

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