#796E40#796E40

#796E40 is a mid, moderate yellow. Relative luminance 0.156; OKLCH L 53.7% C 0.066 H 96.3°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#796E40
RGBrgb(121, 110, 64)
HSLhsl(48, 31%, 36%)
HSVhsv(48, 47%, 47%)
CMYKcmyk(0%, 9.1%, 47.1%, 52.5%)
CIE-LABlab(46.43, -2.62, 27.13)
CIE-LCHlch(46.43, 27.26, 95.52°)
OKLaboklab(53.73% -0.0072 0.0656)
OKLCHoklch(53.73% 0.066 96.3)
XYZxyz(14.3869, 15.5875, 7.1003)
Luminance0.1559 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796E40 #404B79
analogous
#795240 #796E40 #687940
triadic
#796E40 #40796E #6E4079
tetradic
#796E40 #407952 #404B79 #794068
square
#796E40 #407952 #404B79 #794068
split-complementary
#796E40 #406879 #524079
monochromatic
#292516 #514A2B #796E40 #A19255 #B9AD7A

Accessibility & contrast

On white

5.10
#796E40 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#796E40 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796E40
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796E40#FFFFFF#000000##FFFFFF
##796E401.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766C3C
Deuteranopia (green-blind)
#797042
Tritanopia (blue-blind)
#816863
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #796e40;
/* rgb */ color: rgb(121, 110, 64);
/* oklch */ color: oklch(53.7% 0.066 96.3);
Tailwind
colors: {
  custom: {
    50: '#a19776',
    500: '#796e40',
    950: '#000000',
  },
}
SCSS
$custom: #796e40;
$custom-light: #a19776;
$custom-dark: #000000;
JSON
{
  "hex": "#796e40",
  "rgb": {
    "r": 121,
    "g": 110,
    "b": 64
  },
  "hsl": {
    "h": 48.421,
    "s": 30.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.53729,
    "c": 0.06598,
    "h": 96.3
  },
  "luminance": 0.15587
}

Semantic roles & 50–950 ramp

primary
#796E40
secondary
#717BA4
accent
#75C761
background
#FAF9F7
surface
#F3F2ED
border
#CDCCC8
text
#0F0D08
muted
#7F7E7B

Preview Lab

Preview with #796E40

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

Preview Lab → · Contrast checker → · Palette generator →

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