#797018#797018

#797018 is a mid, moderate yellow. Relative luminance 0.157; OKLCH L 53.7% C 0.104 H 103.2°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#797018
RGBrgb(121, 112, 24)
HSLhsl(54, 67%, 28%)
HSVhsv(54, 80%, 47%)
CMYKcmyk(0%, 7.4%, 80.2%, 52.5%)
CIE-LABlab(46.60, -6.77, 46.42)
CIE-LCHlch(46.60, 46.91, 98.30°)
OKLaboklab(53.74% -0.0238 0.1013)
OKLCHoklch(53.74% 0.104 103.2)
XYZxyz(13.8448, 15.7198, 3.1689)
Luminance0.1572 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797018 #182179
analogous
#793F18 #797018 #517918
triadic
#797018 #187970 #701879
tetradic
#797018 #18793F #182179 #791851
square
#797018 #18793F #182179 #791851
split-complementary
#797018 #185179 #3F1879
monochromatic
#1A1805 #46410E #797018 #AC9F22 #D7C835

Accessibility & contrast

On white

5.07
#797018 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#797018 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797018
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797018#FFFFFF#000000##FFFFFF
##7970181.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C04
Deuteranopia (green-blind)
#7E701F
Tritanopia (blue-blind)
#836860
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #797018;
/* rgb */ color: rgb(121, 112, 24);
/* oklch */ color: oklch(53.7% 0.104 103.2);
Tailwind
colors: {
  custom: {
    50: '#a3985d',
    500: '#797018',
    950: '#000000',
  },
}
SCSS
$custom: #797018;
$custom-light: #a3985d;
$custom-dark: #000000;
JSON
{
  "hex": "#797018",
  "rgb": {
    "r": 121,
    "g": 112,
    "b": 24
  },
  "hsl": {
    "h": 54.433,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.53739,
    "c": 0.10404,
    "h": 103.2
  },
  "luminance": 0.15719
}

Semantic roles & 50–950 ramp

primary
#797018
secondary
#3F49AE
accent
#4EEA3E
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100D05
muted
#7F7E79

Preview Lab

Preview with #797018

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

Preview Lab → · Contrast checker → · Palette generator →

#797018 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva