#796D25#796D25

#796D25 is a mid, moderate yellow. Relative luminance 0.151; OKLCH L 53.1% C 0.092 H 99.7°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#796D25
RGBrgb(121, 109, 37)
HSLhsl(51, 53%, 31%)
HSVhsv(51, 69%, 47%)
CMYKcmyk(0%, 9.9%, 69.4%, 52.5%)
CIE-LABlab(45.82, -4.38, 40.38)
CIE-LCHlch(45.82, 40.61, 96.20°)
OKLaboklab(53.15% -0.0156 0.091)
OKLCHoklch(53.15% 0.092 99.7)
XYZxyz(13.6883, 15.1364, 3.9505)
Luminance0.1514 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796D25 #253179
analogous
#794325 #796D25 #5B7925
triadic
#796D25 #25796D #6D2579
tetradic
#796D25 #257943 #253179 #79255B
square
#796D25 #257943 #253179 #79255B
split-complementary
#796D25 #255B79 #432579
monochromatic
#1B1908 #4A4317 #796D25 #A89733 #C9B84F

Accessibility & contrast

On white

5.21
#796D25 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#796D25 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796D25
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796D25#FFFFFF#000000##FFFFFF
##796D251.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786A1C
Deuteranopia (green-blind)
#7B6E29
Tritanopia (blue-blind)
#82655E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #796d25;
/* rgb */ color: rgb(121, 109, 37);
/* oklch */ color: oklch(53.1% 0.092 99.7);
Tailwind
colors: {
  custom: {
    50: '#a29664',
    500: '#796d25',
    950: '#000000',
  },
}
SCSS
$custom: #796d25;
$custom-light: #a29664;
$custom-dark: #000000;
JSON
{
  "hex": "#796d25",
  "rgb": {
    "r": 121,
    "g": 109,
    "b": 37
  },
  "hsl": {
    "h": 51.429,
    "s": 53.165,
    "l": 30.98
  },
  "oklch": {
    "l": 0.53145,
    "c": 0.09236,
    "h": 99.7
  },
  "luminance": 0.15136
}

Semantic roles & 50–950 ramp

primary
#796D25
secondary
#4E5CAB
accent
#60DD4B
background
#FAF9F6
surface
#F4F1EB
border
#CECBC6
text
#0F0D05
muted
#7F7E7A

Preview Lab

Preview with #796D25

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

Preview Lab → · Contrast checker → · Palette generator →

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