#797B15#797B15

#797B15 is a mid, moderate yellow. Relative luminance 0.183; OKLCH L 56.3% C 0.117 H 110.8°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#797B15
RGBrgb(121, 123, 21)
HSLhsl(61, 71%, 28%)
HSVhsv(61, 83%, 48%)
CMYKcmyk(1.6%, 0%, 82.9%, 51.8%)
CIE-LABlab(49.84, -12.97, 50.27)
CIE-LCHlch(49.84, 51.92, 104.47°)
OKLaboklab(56.32% -0.0414 0.1089)
OKLCHoklch(56.32% 0.117 110.8)
XYZxyz(15.1040, 18.2854, 3.4431)
Luminance0.1829 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797B15 #17157B
analogous
#7B4A15 #797B15 #467B15
triadic
#797B15 #15797B #7B1579
tetradic
#797B15 #157B4A #17157B #7B1546
square
#797B15 #157B4A #17157B #7B1546
split-complementary
#797B15 #15467B #4A157B
monochromatic
#1A1A04 #46470C #797B15 #ACAF1E #D8DB2F

Accessibility & contrast

On white

4.51
#797B15 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#797B15 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797B15
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797B15#FFFFFF#000000##000000
##797B151.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#857500
Deuteranopia (green-blind)
#86781F
Tritanopia (blue-blind)
#827369
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797b15;
/* rgb */ color: rgb(121, 123, 21);
/* oklch */ color: oklch(56.3% 0.117 110.8);
Tailwind
colors: {
  custom: {
    50: '#a3a05d',
    500: '#797b15',
    950: '#000000',
  },
}
SCSS
$custom: #797b15;
$custom-light: #a3a05d;
$custom-dark: #000000;
JSON
{
  "hex": "#797b15",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 21
  },
  "hsl": {
    "h": 61.176,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.56315,
    "c": 0.11652,
    "h": 110.8
  },
  "luminance": 0.18285
}

Semantic roles & 50–950 ramp

primary
#797B15
secondary
#3E3BB0
accent
#3AEE3E
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #797B15

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

Preview Lab → · Contrast checker → · Palette generator →

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