#797428#797428

#797428 is a mid, moderate yellow. Relative luminance 0.167; OKLCH L 54.8% C 0.097 H 105.6°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#797428
RGBrgb(121, 116, 40)
HSLhsl(56, 50%, 32%)
HSVhsv(56, 67%, 47%)
CMYKcmyk(0%, 4.1%, 66.9%, 52.5%)
CIE-LABlab(47.89, -8.14, 41.18)
CIE-LCHlch(47.89, 41.97, 101.19°)
OKLaboklab(54.8% -0.0259 0.0932)
OKLCHoklch(54.8% 0.097 105.6)
XYZxyz(14.5141, 16.7094, 4.4678)
Luminance0.1671 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797428 #282D79
analogous
#794C28 #797428 #567928
triadic
#797428 #287974 #742879
tetradic
#797428 #28794C #282D79 #792856
square
#797428 #28794C #282D79 #792856
split-complementary
#797428 #285679 #4C2879
monochromatic
#1D1C0A #4B4819 #797428 #A7A037 #C7C055

Accessibility & contrast

On white

4.84
#797428 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#797428 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797428
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797428#FFFFFF#000000##FFFFFF
##7974281.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E701E
Deuteranopia (green-blind)
#80732D
Tritanopia (blue-blind)
#826C64
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #797428;
/* rgb */ color: rgb(121, 116, 40);
/* oklch */ color: oklch(54.8% 0.097 105.6);
Tailwind
colors: {
  custom: {
    50: '#a29b66',
    500: '#797428',
    950: '#000000',
  },
}
SCSS
$custom: #797428;
$custom-light: #a29b66;
$custom-dark: #000000;
JSON
{
  "hex": "#797428",
  "rgb": {
    "r": 121,
    "g": 116,
    "b": 40
  },
  "hsl": {
    "h": 56.296,
    "s": 50.311,
    "l": 31.569
  },
  "oklch": {
    "l": 0.54799,
    "c": 0.09677,
    "h": 105.6
  },
  "luminance": 0.16709
}

Semantic roles & 50–950 ramp

primary
#797428
secondary
#5257AB
accent
#57DA4E
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #797428

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

Preview Lab → · Contrast checker → · Palette generator →

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