#797028#797028

#797028 is a mid, moderate yellow. Relative luminance 0.158; OKLCH L 53.9% C 0.093 H 102.2°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#797028
RGBrgb(121, 112, 40)
HSLhsl(53, 50%, 32%)
HSVhsv(53, 67%, 47%)
CMYKcmyk(0%, 7.4%, 66.9%, 52.5%)
CIE-LABlab(46.72, -5.89, 39.94)
CIE-LCHlch(46.72, 40.37, 98.39°)
OKLaboklab(53.87% -0.0195 0.0906)
OKLCHoklch(53.87% 0.093 102.2)
XYZxyz(14.0629, 15.8071, 4.3174)
Luminance0.1581 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797028 #283179
analogous
#794828 #797028 #5A7928
triadic
#797028 #287970 #702879
tetradic
#797028 #287948 #283179 #79285A
square
#797028 #287948 #283179 #79285A
split-complementary
#797028 #285A79 #482879
monochromatic
#1D1B0A #4B4519 #797028 #A79B37 #C7BA55

Accessibility & contrast

On white

5.05
#797028 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#797028 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797028
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797028#FFFFFF#000000##FFFFFF
##7970281.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6C1F
Deuteranopia (green-blind)
#7D702C
Tritanopia (blue-blind)
#826861
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #797028;
/* rgb */ color: rgb(121, 112, 40);
/* oklch */ color: oklch(53.9% 0.093 102.2);
Tailwind
colors: {
  custom: {
    50: '#a29866',
    500: '#797028',
    950: '#000000',
  },
}
SCSS
$custom: #797028;
$custom-light: #a29866;
$custom-dark: #000000;
JSON
{
  "hex": "#797028",
  "rgb": {
    "r": 121,
    "g": 112,
    "b": 40
  },
  "hsl": {
    "h": 53.333,
    "s": 50.311,
    "l": 31.569
  },
  "oklch": {
    "l": 0.53867,
    "c": 0.0927,
    "h": 102.2
  },
  "luminance": 0.15806
}

Semantic roles & 50–950 ramp

primary
#797028
secondary
#525CAB
accent
#5EDA4E
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #797028

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

Preview Lab → · Contrast checker → · Palette generator →

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