#796928#796928

#796928 is a mid, moderate yellow. Relative luminance 0.143; OKLCH L 52.3% C 0.086 H 95.4°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#796928
RGBrgb(121, 105, 40)
HSLhsl(48, 50%, 32%)
HSVhsv(48, 67%, 47%)
CMYKcmyk(0%, 13.2%, 66.9%, 52.5%)
CIE-LABlab(44.69, -1.89, 37.77)
CIE-LCHlch(44.69, 37.82, 92.86°)
OKLaboklab(52.26% -0.0081 0.086)
OKLCHoklch(52.26% 0.086 95.4)
XYZxyz(13.3203, 14.3220, 4.0699)
Luminance0.1432 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796928 #283879
analogous
#794128 #796928 #617928
triadic
#796928 #287969 #692879
tetradic
#796928 #287941 #283879 #792861
square
#796928 #287941 #283879 #792861
split-complementary
#796928 #286179 #412879
monochromatic
#1D190A #4B4119 #796928 #A79137 #C7B055

Accessibility & contrast

On white

5.43
#796928 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#796928 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796928
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796928#FFFFFF#000000##FFFFFF
##7969281.005.433.865.43
#FFFFFF5.431.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746720
Deuteranopia (green-blind)
#786C2B
Tritanopia (blue-blind)
#83615B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #796928;
/* rgb */ color: rgb(121, 105, 40);
/* oklch */ color: oklch(52.3% 0.086 95.4);
Tailwind
colors: {
  custom: {
    50: '#a29365',
    500: '#796928',
    950: '#000000',
  },
}
SCSS
$custom: #796928;
$custom-light: #a29365;
$custom-dark: #000000;
JSON
{
  "hex": "#796928",
  "rgb": {
    "r": 121,
    "g": 105,
    "b": 40
  },
  "hsl": {
    "h": 48.148,
    "s": 50.311,
    "l": 31.569
  },
  "oklch": {
    "l": 0.52259,
    "c": 0.0864,
    "h": 95.4
  },
  "luminance": 0.14321
}

Semantic roles & 50–950 ramp

primary
#796928
secondary
#5263AB
accent
#6ADA4E
background
#FAF9F6
surface
#F4F1EB
border
#CECBC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #796928

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

Preview Lab → · Contrast checker → · Palette generator →

#796928 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva