#797E12#797E12

#797E12 is a mid, vivid yellow. Relative luminance 0.190; OKLCH L 57.0% C 0.121 H 112.5°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#797E12
RGBrgb(121, 126, 18)
HSLhsl(63, 75%, 28%)
HSVhsv(63, 86%, 49%)
CMYKcmyk(4%, 0%, 85.7%, 50.6%)
CIE-LABlab(50.72, -14.69, 51.87)
CIE-LCHlch(50.72, 53.91, 105.81°)
OKLaboklab(57.02% -0.0464 0.1118)
OKLCHoklch(57.02% 0.121 112.5)
XYZxyz(15.4557, 19.0307, 3.4313)
Luminance0.1903 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797E12 #17127E
analogous
#7E4D12 #797E12 #437E12
triadic
#797E12 #12797E #7E1279
tetradic
#797E12 #127E4D #17127E #7E1243
square
#797E12 #127E4D #17127E #7E1243
split-complementary
#797E12 #12437E #4D127E
monochromatic
#1A1B04 #46480A #797E12 #ACB41A #D8E12A

Accessibility & contrast

On white

4.37
#797E12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#797E12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797E12
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797E12#FFFFFF#000000##000000
##797E121.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#887800
Deuteranopia (green-blind)
#897A1D
Tritanopia (blue-blind)
#82766B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #797e12;
/* rgb */ color: rgb(121, 126, 18);
/* oklch */ color: oklch(57.0% 0.121 112.5);
Tailwind
colors: {
  custom: {
    50: '#a3a35d',
    500: '#797e12',
    950: '#000000',
  },
}
SCSS
$custom: #797e12;
$custom-light: #a3a35d;
$custom-dark: #000000;
JSON
{
  "hex": "#797e12",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 18
  },
  "hsl": {
    "h": 62.778,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.57018,
    "c": 0.12103,
    "h": 112.5
  },
  "luminance": 0.1903
}

Semantic roles & 50–950 ramp

primary
#797E12
secondary
#3E38B4
accent
#36F23F
background
#FAFAF5
surface
#F4F3E9
border
#CECDC5
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #797E12

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

Preview Lab → · Contrast checker → · Palette generator →

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