#797F18#797F18

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

Color values

HEX#797F18
RGBrgb(121, 127, 24)
HSLhsl(63, 68%, 30%)
HSVhsv(63, 81%, 50%)
CMYKcmyk(4.7%, 0%, 81.1%, 50.2%)
CIE-LABlab(51.05, -15.01, 50.43)
CIE-LCHlch(51.05, 52.62, 106.57°)
OKLaboklab(57.29% -0.0468 0.1098)
OKLCHoklch(57.29% 0.119 113.1)
XYZxyz(15.6399, 19.3100, 3.7673)
Luminance0.1931 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797F18 #1E187F
analogous
#7F5218 #797F18 #467F18
triadic
#797F18 #18797F #7F1879
tetradic
#797F18 #187F52 #1E187F #7F1846
square
#797F18 #187F52 #1E187F #7F1846
split-complementary
#797F18 #18467F #52187F
monochromatic
#191A05 #484C0E #797F18 #AAB222 #D0D938

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797F18#FFFFFF#000000##000000
##797F181.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)
#897900
Deuteranopia (green-blind)
#897B22
Tritanopia (blue-blind)
#82776C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #797f18;
/* rgb */ color: rgb(121, 127, 24);
/* oklch */ color: oklch(57.3% 0.119 113.1);
Tailwind
colors: {
  custom: {
    50: '#a3a35f',
    500: '#797f18',
    950: '#000000',
  },
}
SCSS
$custom: #797f18;
$custom-light: #a3a35f;
$custom-dark: #000000;
JSON
{
  "hex": "#797f18",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 24
  },
  "hsl": {
    "h": 63.495,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.57286,
    "c": 0.11939,
    "h": 113.1
  },
  "luminance": 0.1931
}

Semantic roles & 50–950 ramp

primary
#797F18
secondary
#463FB3
accent
#3DEB47
background
#FAFAF5
surface
#F4F3EA
border
#CECDC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #797F18

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

Preview Lab → · Contrast checker → · Palette generator →

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