#797628#797628

#797628 is a mid, moderate yellow. Relative luminance 0.172; OKLCH L 55.3% C 0.099 H 107.1°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#797628
RGBrgb(121, 118, 40)
HSLhsl(58, 50%, 32%)
HSVhsv(58, 67%, 47%)
CMYKcmyk(0%, 2.5%, 66.9%, 52.5%)
CIE-LABlab(48.48, -9.26, 41.79)
CIE-LCHlch(48.48, 42.81, 102.49°)
OKLaboklab(55.27% -0.0291 0.0945)
OKLCHoklch(55.27% 0.099 107.1)
XYZxyz(14.7471, 17.1755, 4.5455)
Luminance0.1718 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797628 #282B79
analogous
#794E28 #797628 #547928
triadic
#797628 #287976 #762879
tetradic
#797628 #28794E #282B79 #792854
square
#797628 #28794E #282B79 #792854
split-complementary
#797628 #285479 #4E2879
monochromatic
#1D1C0A #4B4919 #797628 #A7A337 #C7C255

Accessibility & contrast

On white

4.74
#797628 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#797628 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797628
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797628#FFFFFF#000000##FFFFFF
##7976281.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#80711E
Deuteranopia (green-blind)
#81752D
Tritanopia (blue-blind)
#826E66
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #797628;
/* rgb */ color: rgb(121, 118, 40);
/* oklch */ color: oklch(55.3% 0.099 107.1);
Tailwind
colors: {
  custom: {
    50: '#a29d66',
    500: '#797628',
    950: '#000000',
  },
}
SCSS
$custom: #797628;
$custom-light: #a29d66;
$custom-dark: #000000;
JSON
{
  "hex": "#797628",
  "rgb": {
    "r": 121,
    "g": 118,
    "b": 40
  },
  "hsl": {
    "h": 57.778,
    "s": 50.311,
    "l": 31.569
  },
  "oklch": {
    "l": 0.55268,
    "c": 0.09892,
    "h": 107.1
  },
  "luminance": 0.17175
}

Semantic roles & 50–950 ramp

primary
#797628
secondary
#5255AB
accent
#53DA4E
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #797628

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

Preview Lab → · Contrast checker → · Palette generator →

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