#796F1C#796F1C

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

Color values

HEX#796F1C
RGBrgb(121, 111, 28)
HSLhsl(54, 62%, 29%)
HSVhsv(54, 77%, 47%)
CMYKcmyk(0%, 8.3%, 76.9%, 52.5%)
CIE-LABlab(46.34, -6.02, 44.69)
CIE-LCHlch(46.34, 45.10, 97.68°)
OKLaboklab(53.53% -0.0213 0.0984)
OKLCHoklch(53.53% 0.101 102.2)
XYZxyz(13.7798, 15.5183, 3.3679)
Luminance0.1552 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796F1C #1C2679
analogous
#79411C #796F1C #55791C
triadic
#796F1C #1C796F #6F1C79
tetradic
#796F1C #1C7941 #1C2679 #791C55
square
#796F1C #1C7941 #1C2679 #791C55
split-complementary
#796F1C #1C5579 #411C79
monochromatic
#191706 #474110 #796F1C #AB9D28 #D2C23D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##796F1C#FFFFFF#000000##FFFFFF
##796F1C1.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)
#7A6B0C
Deuteranopia (green-blind)
#7D7022
Tritanopia (blue-blind)
#83675F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #796f1c;
/* rgb */ color: rgb(121, 111, 28);
/* oklch */ color: oklch(53.5% 0.101 102.2);
Tailwind
colors: {
  custom: {
    50: '#a3985f',
    500: '#796f1c',
    950: '#000000',
  },
}
SCSS
$custom: #796f1c;
$custom-light: #a3985f;
$custom-dark: #000000;
JSON
{
  "hex": "#796f1c",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 28
  },
  "hsl": {
    "h": 53.548,
    "s": 62.416,
    "l": 29.216
  },
  "oklch": {
    "l": 0.53533,
    "c": 0.1007,
    "h": 102.2
  },
  "luminance": 0.15518
}

Semantic roles & 50–950 ramp

primary
#796F1C
secondary
#444FAD
accent
#54E542
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #796F1C

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

Preview Lab → · Contrast checker → · Palette generator →

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