#7A7828#7A7828

#7A7828 is a mid, moderate yellow. Relative luminance 0.177; OKLCH L 55.8% C 0.101 H 107.9°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#7A7828
RGBrgb(122, 120, 40)
HSLhsl(59, 51%, 32%)
HSVhsv(59, 67%, 48%)
CMYKcmyk(0%, 1.6%, 67.2%, 52.2%)
CIE-LABlab(49.16, -9.91, 42.53)
CIE-LCHlch(49.16, 43.67, 103.11°)
OKLaboklab(55.83% -0.031 0.0961)
OKLCHoklch(55.83% 0.101 107.9)
XYZxyz(15.1260, 17.7242, 4.6314)
Luminance0.1772 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A7828 #282A7A
analogous
#7A4F28 #7A7828 #537A28
triadic
#7A7828 #287A78 #78287A
tetradic
#7A7828 #287A4F #282A7A #7A2853
square
#7A7828 #287A4F #282A7A #7A2853
split-complementary
#7A7828 #28537A #4F287A
monochromatic
#1E1D0A #4C4B19 #7A7828 #A8A537 #C7C555

Accessibility & contrast

On white

4.62
#7A7828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#7A7828 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7A7828
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A7828#FFFFFF#000000##FFFFFF
##7A78281.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82731D
Deuteranopia (green-blind)
#83762D
Tritanopia (blue-blind)
#837068
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7a7828;
/* rgb */ color: rgb(122, 120, 40);
/* oklch */ color: oklch(55.8% 0.101 107.9);
Tailwind
colors: {
  custom: {
    50: '#a39e67',
    500: '#7a7828',
    950: '#000000',
  },
}
SCSS
$custom: #7a7828;
$custom-light: #a39e67;
$custom-dark: #000000;
JSON
{
  "hex": "#7a7828",
  "rgb": {
    "r": 122,
    "g": 120,
    "b": 40
  },
  "hsl": {
    "h": 58.537,
    "s": 50.617,
    "l": 31.765
  },
  "oklch": {
    "l": 0.55831,
    "c": 0.10094,
    "h": 107.9
  },
  "luminance": 0.17724
}

Semantic roles & 50–950 ramp

primary
#7A7828
secondary
#5254AC
accent
#51DA4E
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #7A7828

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

Preview Lab → · Contrast checker → · Palette generator →

#7A7828 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva