#797B14#797B14

#797B14 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#797B14
RGBrgb(121, 123, 20)
HSLhsl(61, 72%, 28%)
HSVhsv(61, 84%, 48%)
CMYKcmyk(1.6%, 0%, 83.7%, 51.8%)
CIE-LABlab(49.84, -13.01, 50.56)
CIE-LCHlch(49.84, 52.21, 104.43°)
OKLaboklab(56.31% -0.0416 0.1094)
OKLCHoklch(56.31% 0.117 110.8)
XYZxyz(15.0949, 18.2818, 3.3953)
Luminance0.1828 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797B14 #16147B
analogous
#7B4914 #797B14 #457B14
triadic
#797B14 #14797B #7B1479
tetradic
#797B14 #147B49 #16147B #7B1445
square
#797B14 #147B49 #16147B #7B1445
split-complementary
#797B14 #14457B #49147B
monochromatic
#1A1A04 #45460B #797B14 #ADB01D #D9DD2D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797B14#FFFFFF#000000##000000
##797B141.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)
#86781E
Tritanopia (blue-blind)
#827369
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #797b14;
/* rgb */ color: rgb(121, 123, 20);
/* oklch */ color: oklch(56.3% 0.117 110.8);
Tailwind
colors: {
  custom: {
    50: '#a3a05d',
    500: '#797b14',
    950: '#000000',
  },
}
SCSS
$custom: #797b14;
$custom-light: #a3a05d;
$custom-dark: #000000;
JSON
{
  "hex": "#797b14",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 20
  },
  "hsl": {
    "h": 61.165,
    "s": 72.028,
    "l": 28.039
  },
  "oklch": {
    "l": 0.5631,
    "c": 0.11698,
    "h": 110.8
  },
  "luminance": 0.18281
}

Semantic roles & 50–950 ramp

primary
#797B14
secondary
#3D3AB1
accent
#39EF3D
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #797B14

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

Preview Lab → · Contrast checker → · Palette generator →

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