#796F27#796F27

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

Color values

HEX#796F27
RGBrgb(121, 111, 39)
HSLhsl(53, 51%, 31%)
HSVhsv(53, 68%, 47%)
CMYKcmyk(0%, 8.3%, 67.8%, 52.5%)
CIE-LABlab(46.42, -5.39, 40.09)
CIE-LCHlch(46.42, 40.45, 97.66°)
OKLaboklab(53.63% -0.0182 0.0908)
OKLCHoklch(53.63% 0.093 101.4)
XYZxyz(13.9364, 15.5809, 4.1924)
Luminance0.1558 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796F27 #273179
analogous
#794627 #796F27 #5A7927
triadic
#796F27 #27796F #6F2779
tetradic
#796F27 #277946 #273179 #79275A
square
#796F27 #277946 #273179 #79275A
split-complementary
#796F27 #275A79 #462779
monochromatic
#1C1A09 #4B4518 #796F27 #A79936 #C8B953

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##796F27#FFFFFF#000000##FFFFFF
##796F271.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)
#796C1E
Deuteranopia (green-blind)
#7C702B
Tritanopia (blue-blind)
#826760
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #796f27;
/* rgb */ color: rgb(121, 111, 39);
/* oklch */ color: oklch(53.6% 0.093 101.4);
Tailwind
colors: {
  custom: {
    50: '#a29865',
    500: '#796f27',
    950: '#000000',
  },
}
SCSS
$custom: #796f27;
$custom-light: #a29865;
$custom-dark: #000000;
JSON
{
  "hex": "#796f27",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 39
  },
  "hsl": {
    "h": 52.683,
    "s": 51.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.53626,
    "c": 0.09258,
    "h": 101.4
  },
  "luminance": 0.1558
}

Semantic roles & 50–950 ramp

primary
#796F27
secondary
#515CAB
accent
#5EDB4D
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #796F27

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

Preview Lab → · Contrast checker → · Palette generator →

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