#796A27#796A27

#796A27 is a mid, moderate yellow. Relative luminance 0.145; OKLCH L 52.5% C 0.088 H 96.6°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#796A27
RGBrgb(121, 106, 39)
HSLhsl(49, 51%, 31%)
HSVhsv(49, 68%, 47%)
CMYKcmyk(0%, 12.4%, 67.8%, 52.5%)
CIE-LABlab(44.97, -2.53, 38.55)
CIE-LCHlch(44.97, 38.63, 93.76°)
OKLaboklab(52.48% -0.0101 0.0875)
OKLCHoklch(52.48% 0.088 96.6)
XYZxyz(13.4060, 14.5202, 4.0156)
Luminance0.1452 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796A27 #273679
analogous
#794127 #796A27 #5F7927
triadic
#796A27 #27796A #6A2779
tetradic
#796A27 #277941 #273679 #79275F
square
#796A27 #277941 #273679 #79275F
split-complementary
#796A27 #275F79 #412779
monochromatic
#1C1909 #4B4118 #796A27 #A79336 #C8B253

Accessibility & contrast

On white

5.38
#796A27 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#796A27 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796A27
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796A27#FFFFFF#000000##FFFFFF
##796A271.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#75681F
Deuteranopia (green-blind)
#796D2A
Tritanopia (blue-blind)
#83625C
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #796a27;
/* rgb */ color: rgb(121, 106, 39);
/* oklch */ color: oklch(52.5% 0.088 96.6);
Tailwind
colors: {
  custom: {
    50: '#a29465',
    500: '#796a27',
    950: '#000000',
  },
}
SCSS
$custom: #796a27;
$custom-light: #a29465;
$custom-dark: #000000;
JSON
{
  "hex": "#796a27",
  "rgb": {
    "r": 121,
    "g": 106,
    "b": 39
  },
  "hsl": {
    "h": 49.024,
    "s": 51.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.52476,
    "c": 0.08808,
    "h": 96.6
  },
  "luminance": 0.14519
}

Semantic roles & 50–950 ramp

primary
#796A27
secondary
#5161AB
accent
#67DB4D
background
#FAF9F6
surface
#F4F1EB
border
#CECBC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #796A27

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

Preview Lab → · Contrast checker → · Palette generator →

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