#797D12#797D12

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

Color values

HEX#797D12
RGBrgb(121, 125, 18)
HSLhsl(62, 75%, 28%)
HSVhsv(62, 86%, 49%)
CMYKcmyk(3.2%, 0%, 85.6%, 51%)
CIE-LABlab(50.42, -14.15, 51.61)
CIE-LCHlch(50.42, 53.52, 105.33°)
OKLaboklab(56.78% -0.0449 0.1113)
OKLCHoklch(56.78% 0.12 112)
XYZxyz(15.3285, 18.7763, 3.3889)
Luminance0.1878 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797D12 #16127D
analogous
#7D4B12 #797D12 #437D12
triadic
#797D12 #12797D #7D1279
tetradic
#797D12 #127D4B #16127D #7D1243
square
#797D12 #127D4B #16127D #7D1243
split-complementary
#797D12 #12437D #4B127D
monochromatic
#1A1B04 #45480A #797D12 #ADB21A #D9E029

Accessibility & contrast

On white

4.42
#797D12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##797D12#FFFFFF#000000##000000
##797D121.004.424.764.76
#FFFFFF4.421.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #797d12;
/* rgb */ color: rgb(121, 125, 18);
/* oklch */ color: oklch(56.8% 0.120 112.0);
Tailwind
colors: {
  custom: {
    50: '#a3a25d',
    500: '#797d12',
    950: '#000000',
  },
}
SCSS
$custom: #797d12;
$custom-light: #a3a25d;
$custom-dark: #000000;
JSON
{
  "hex": "#797d12",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 18
  },
  "hsl": {
    "h": 62.243,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.56778,
    "c": 0.11997,
    "h": 112
  },
  "luminance": 0.18776
}

Semantic roles & 50–950 ramp

primary
#797D12
secondary
#3D38B3
accent
#36F13D
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100F05
muted
#7F7E79

Preview Lab

Preview with #797D12

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

Preview Lab → · Contrast checker → · Palette generator →

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