#796F18#796F18

#796F18 is a mid, moderate yellow. Relative luminance 0.155; OKLCH L 53.5% C 0.103 H 102.5°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#796F18
RGBrgb(121, 111, 24)
HSLhsl(54, 67%, 28%)
HSVhsv(54, 80%, 47%)
CMYKcmyk(0%, 8.3%, 80.2%, 52.5%)
CIE-LABlab(46.31, -6.20, 46.15)
CIE-LCHlch(46.31, 46.57, 97.66°)
OKLaboklab(53.51% -0.0222 0.1007)
OKLCHoklch(53.51% 0.103 102.5)
XYZxyz(13.7351, 15.5004, 3.1324)
Luminance0.1550 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796F18 #182279
analogous
#793E18 #796F18 #527918
triadic
#796F18 #18796F #6F1879
tetradic
#796F18 #18793E #182279 #791852
square
#796F18 #18793E #182279 #791852
split-complementary
#796F18 #185279 #3E1879
monochromatic
#1A1705 #46400E #796F18 #AC9E22 #D7C635

Accessibility & contrast

On white

5.12
#796F18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#796F18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796F18
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796F18#FFFFFF#000000##FFFFFF
##796F181.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B04
Deuteranopia (green-blind)
#7D701F
Tritanopia (blue-blind)
#83675F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #796f18;
/* rgb */ color: rgb(121, 111, 24);
/* oklch */ color: oklch(53.5% 0.103 102.5);
Tailwind
colors: {
  custom: {
    50: '#a3985d',
    500: '#796f18',
    950: '#000000',
  },
}
SCSS
$custom: #796f18;
$custom-light: #a3985d;
$custom-dark: #000000;
JSON
{
  "hex": "#796f18",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 24
  },
  "hsl": {
    "h": 53.814,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.53506,
    "c": 0.10313,
    "h": 102.5
  },
  "luminance": 0.155
}

Semantic roles & 50–950 ramp

primary
#796F18
secondary
#3F4AAE
accent
#50EA3E
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100D05
muted
#7F7E79

Preview Lab

Preview with #796F18

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

Preview Lab → · Contrast checker → · Palette generator →

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