#796E27#796E27

#796E27 is a mid, moderate yellow. Relative luminance 0.154; OKLCH L 53.4% C 0.092 H 100.5°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#796E27
RGBrgb(121, 110, 39)
HSLhsl(52, 51%, 31%)
HSVhsv(52, 68%, 47%)
CMYKcmyk(0%, 9.1%, 67.8%, 52.5%)
CIE-LABlab(46.13, -4.82, 39.78)
CIE-LCHlch(46.13, 40.07, 96.91°)
OKLaboklab(53.4% -0.0166 0.0901)
OKLCHoklch(53.4% 0.092 100.5)
XYZxyz(13.8279, 15.3639, 4.1562)
Luminance0.1536 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796E27 #273279
analogous
#794527 #796E27 #5B7927
triadic
#796E27 #27796E #6E2779
tetradic
#796E27 #277945 #273279 #79275B
square
#796E27 #277945 #273279 #79275B
split-complementary
#796E27 #275B79 #452779
monochromatic
#1C1A09 #4B4418 #796E27 #A79836 #C8B853

Accessibility & contrast

On white

5.16
#796E27 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#796E27 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796E27
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796E27#FFFFFF#000000##FFFFFF
##796E271.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786B1E
Deuteranopia (green-blind)
#7B6F2B
Tritanopia (blue-blind)
#82665F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #796e27;
/* rgb */ color: rgb(121, 110, 39);
/* oklch */ color: oklch(53.4% 0.092 100.5);
Tailwind
colors: {
  custom: {
    50: '#a29765',
    500: '#796e27',
    950: '#000000',
  },
}
SCSS
$custom: #796e27;
$custom-light: #a29765;
$custom-dark: #000000;
JSON
{
  "hex": "#796e27",
  "rgb": {
    "r": 121,
    "g": 110,
    "b": 39
  },
  "hsl": {
    "h": 51.951,
    "s": 51.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.53395,
    "c": 0.09163,
    "h": 100.5
  },
  "luminance": 0.15363
}

Semantic roles & 50–950 ramp

primary
#796E27
secondary
#515DAB
accent
#60DB4D
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #796E27

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

Preview Lab → · Contrast checker → · Palette generator →

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