#796F15#796F15

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

Color values

HEX#796F15
RGBrgb(121, 111, 21)
HSLhsl(54, 70%, 28%)
HSVhsv(54, 83%, 47%)
CMYKcmyk(0%, 8.3%, 82.6%, 52.5%)
CIE-LABlab(46.30, -6.32, 47.16)
CIE-LCHlch(46.30, 47.58, 97.64°)
OKLaboklab(53.49% -0.0229 0.1022)
OKLCHoklch(53.49% 0.105 102.6)
XYZxyz(13.7056, 15.4886, 2.9770)
Luminance0.1549 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796F15 #151F79
analogous
#793D15 #796F15 #517915
triadic
#796F15 #15796F #6F1579
tetradic
#796F15 #15793D #151F79 #791551
square
#796F15 #15793D #151F79 #791551
split-complementary
#796F15 #155179 #3D1579
monochromatic
#1A1805 #453F0C #796F15 #AD9F1E #DBC92E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##796F15#FFFFFF#000000##FFFFFF
##796F151.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)
#7A6B00
Deuteranopia (green-blind)
#7D701C
Tritanopia (blue-blind)
#83665E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #796f15;
/* rgb */ color: rgb(121, 111, 21);
/* oklch */ color: oklch(53.5% 0.105 102.6);
Tailwind
colors: {
  custom: {
    50: '#a3985c',
    500: '#796f15',
    950: '#000000',
  },
}
SCSS
$custom: #796f15;
$custom-light: #a3985c;
$custom-dark: #000000;
JSON
{
  "hex": "#796f15",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 21
  },
  "hsl": {
    "h": 54,
    "s": 70.423,
    "l": 27.843
  },
  "oklch": {
    "l": 0.53488,
    "c": 0.10474,
    "h": 102.6
  },
  "luminance": 0.15488
}

Semantic roles & 50–950 ramp

primary
#796F15
secondary
#3B47AF
accent
#4CED3B
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #796F15

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

Preview Lab → · Contrast checker → · Palette generator →

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