#797F12#797F12

#797F12 is a mid, vivid yellow. Relative luminance 0.193; OKLCH L 57.3% C 0.122 H 113.1°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#797F12
RGBrgb(121, 127, 18)
HSLhsl(63, 75%, 28%)
HSVhsv(63, 86%, 50%)
CMYKcmyk(4.7%, 0%, 85.8%, 50.2%)
CIE-LABlab(51.02, -15.22, 52.12)
CIE-LCHlch(51.02, 54.30, 106.28°)
OKLaboklab(57.26% -0.0478 0.1124)
OKLCHoklch(57.26% 0.122 113.1)
XYZxyz(15.5842, 19.2877, 3.4741)
Luminance0.1929 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797F12 #18127F
analogous
#7F4E12 #797F12 #427F12
triadic
#797F12 #12797F #7F1279
tetradic
#797F12 #127F4E #18127F #7F1242
square
#797F12 #127F4E #18127F #7F1242
split-complementary
#797F12 #12427F #4E127F
monochromatic
#1A1B04 #46490A #797F12 #ACB51A #D7E12B

Accessibility & contrast

On white

4.32
#797F12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#797F12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797F12
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797F12#FFFFFF#000000##000000
##797F121.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#897800
Deuteranopia (green-blind)
#897B1E
Tritanopia (blue-blind)
#82776C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #797f12;
/* rgb */ color: rgb(121, 127, 18);
/* oklch */ color: oklch(57.3% 0.122 113.1);
Tailwind
colors: {
  custom: {
    50: '#a3a35d',
    500: '#797f12',
    950: '#000000',
  },
}
SCSS
$custom: #797f12;
$custom-light: #a3a35d;
$custom-dark: #000000;
JSON
{
  "hex": "#797f12",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 18
  },
  "hsl": {
    "h": 63.303,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.57257,
    "c": 0.12212,
    "h": 113.1
  },
  "luminance": 0.19287
}

Semantic roles & 50–950 ramp

primary
#797F12
secondary
#3F38B5
accent
#36F240
background
#FAFAF5
surface
#F4F3E9
border
#CECDC5
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #797F12

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

Preview Lab → · Contrast checker → · Palette generator →

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