#797118#797118

#797118 is a mid, moderate yellow. Relative luminance 0.159; OKLCH L 54.0% C 0.105 H 104.0°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#797118
RGBrgb(121, 113, 24)
HSLhsl(55, 67%, 28%)
HSVhsv(55, 80%, 47%)
CMYKcmyk(0%, 6.6%, 80.2%, 52.5%)
CIE-LABlab(46.90, -7.33, 46.69)
CIE-LCHlch(46.90, 47.26, 98.92°)
OKLaboklab(53.97% -0.0254 0.1018)
OKLCHoklch(53.97% 0.105 104)
XYZxyz(13.9558, 15.9417, 3.2059)
Luminance0.1594 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797118 #182079
analogous
#794018 #797118 #507918
triadic
#797118 #187971 #711879
tetradic
#797118 #187940 #182079 #791850
square
#797118 #187940 #182079 #791850
split-complementary
#797118 #185079 #401879
monochromatic
#1A1805 #46410E #797118 #ACA122 #D7C935

Accessibility & contrast

On white

5.01
#797118 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#797118 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797118
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797118#FFFFFF#000000##FFFFFF
##7971181.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D03
Deuteranopia (green-blind)
#7E711F
Tritanopia (blue-blind)
#836960
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #797118;
/* rgb */ color: rgb(121, 113, 24);
/* oklch */ color: oklch(54.0% 0.105 104.0);
Tailwind
colors: {
  custom: {
    50: '#a3995d',
    500: '#797118',
    950: '#000000',
  },
}
SCSS
$custom: #797118;
$custom-light: #a3995d;
$custom-dark: #000000;
JSON
{
  "hex": "#797118",
  "rgb": {
    "r": 121,
    "g": 113,
    "b": 24
  },
  "hsl": {
    "h": 55.052,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.53972,
    "c": 0.10496,
    "h": 104
  },
  "luminance": 0.15941
}

Semantic roles & 50–950 ramp

primary
#797118
secondary
#3F48AE
accent
#4CEA3E
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100D05
muted
#7F7E79

Preview Lab

Preview with #797118

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

Preview Lab → · Contrast checker → · Palette generator →

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