#797128#797128

#797128 is a mid, moderate yellow. Relative luminance 0.160; OKLCH L 54.1% C 0.094 H 103.1°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#797128
RGBrgb(121, 113, 40)
HSLhsl(54, 50%, 32%)
HSVhsv(54, 67%, 47%)
CMYKcmyk(0%, 6.6%, 66.9%, 52.5%)
CIE-LABlab(47.01, -6.46, 40.25)
CIE-LCHlch(47.01, 40.76, 99.12°)
OKLaboklab(54.1% -0.0212 0.0913)
OKLCHoklch(54.1% 0.094 103.1)
XYZxyz(14.1738, 16.0290, 4.3544)
Luminance0.1603 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797128 #283079
analogous
#794928 #797128 #597928
triadic
#797128 #287971 #712879
tetradic
#797128 #287949 #283079 #792859
square
#797128 #287949 #283079 #792859
split-complementary
#797128 #285979 #492879
monochromatic
#1D1B0A #4B4619 #797128 #A79C37 #C7BB55

Accessibility & contrast

On white

4.99
#797128 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#797128 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797128
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797128#FFFFFF#000000##FFFFFF
##7971281.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6D1F
Deuteranopia (green-blind)
#7E712C
Tritanopia (blue-blind)
#826962
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #797128;
/* rgb */ color: rgb(121, 113, 40);
/* oklch */ color: oklch(54.1% 0.094 103.1);
Tailwind
colors: {
  custom: {
    50: '#a29966',
    500: '#797128',
    950: '#000000',
  },
}
SCSS
$custom: #797128;
$custom-light: #a29966;
$custom-dark: #000000;
JSON
{
  "hex": "#797128",
  "rgb": {
    "r": 121,
    "g": 113,
    "b": 40
  },
  "hsl": {
    "h": 54.074,
    "s": 50.311,
    "l": 31.569
  },
  "oklch": {
    "l": 0.54099,
    "c": 0.09369,
    "h": 103.1
  },
  "luminance": 0.16028
}

Semantic roles & 50–950 ramp

primary
#797128
secondary
#525BAB
accent
#5CDA4E
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #797128

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

Preview Lab → · Contrast checker → · Palette generator →

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