#796C27#796C27

#796C27 is a mid, moderate yellow. Relative luminance 0.149; OKLCH L 52.9% C 0.090 H 98.6°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#796C27
RGBrgb(121, 108, 39)
HSLhsl(50, 51%, 31%)
HSVhsv(50, 68%, 47%)
CMYKcmyk(0%, 10.7%, 67.8%, 52.5%)
CIE-LABlab(45.55, -3.68, 39.16)
CIE-LCHlch(45.55, 39.34, 95.37°)
OKLaboklab(52.93% -0.0134 0.0888)
OKLCHoklch(52.93% 0.09 98.6)
XYZxyz(13.6145, 14.9372, 4.0851)
Luminance0.1494 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796C27 #273479
analogous
#794327 #796C27 #5D7927
triadic
#796C27 #27796C #6C2779
tetradic
#796C27 #277943 #273479 #79275D
square
#796C27 #277943 #273479 #79275D
split-complementary
#796C27 #275D79 #432779
monochromatic
#1C1909 #4B4318 #796C27 #A79536 #C8B553

Accessibility & contrast

On white

5.27
#796C27 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#796C27 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796C27
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796C27#FFFFFF#000000##FFFFFF
##796C271.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#76691F
Deuteranopia (green-blind)
#7A6E2B
Tritanopia (blue-blind)
#82645E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #796c27;
/* rgb */ color: rgb(121, 108, 39);
/* oklch */ color: oklch(52.9% 0.090 98.6);
Tailwind
colors: {
  custom: {
    50: '#a29565',
    500: '#796c27',
    950: '#000000',
  },
}
SCSS
$custom: #796c27;
$custom-light: #a29565;
$custom-dark: #000000;
JSON
{
  "hex": "#796c27",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 39
  },
  "hsl": {
    "h": 50.488,
    "s": 51.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.52934,
    "c": 0.08981,
    "h": 98.6
  },
  "luminance": 0.14937
}

Semantic roles & 50–950 ramp

primary
#796C27
secondary
#515FAB
accent
#64DB4D
background
#FAF9F6
surface
#F4F1EB
border
#CECBC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #796C27

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

Preview Lab → · Contrast checker → · Palette generator →

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