#7B7828#7B7828

#7B7828 is a mid, moderate yellow. Relative luminance 0.178; OKLCH L 55.9% C 0.101 H 107.2°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#7B7828
RGBrgb(123, 120, 40)
HSLhsl(58, 51%, 32%)
HSVhsv(58, 67%, 48%)
CMYKcmyk(0%, 2.4%, 67.5%, 51.8%)
CIE-LABlab(49.25, -9.45, 42.65)
CIE-LCHlch(49.25, 43.68, 102.49°)
OKLaboklab(55.92% -0.0297 0.0963)
OKLCHoklch(55.92% 0.101 107.2)
XYZxyz(15.2684, 17.7976, 4.6381)
Luminance0.1780 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B7828 #282B7B
analogous
#7B4F28 #7B7828 #557B28
triadic
#7B7828 #287B78 #78287B
tetradic
#7B7828 #287B4F #282B7B #7B2855
square
#7B7828 #287B4F #282B7B #7B2855
split-complementary
#7B7828 #28557B #4F287B
monochromatic
#1F1E0A #4D4B19 #7B7828 #A9A537 #C8C456

Accessibility & contrast

On white

4.61
#7B7828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#7B7828 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7B7828
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B7828#FFFFFF#000000##FFFFFF
##7B78281.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b7828;
/* rgb */ color: rgb(123, 120, 40);
/* oklch */ color: oklch(55.9% 0.101 107.2);
Tailwind
colors: {
  custom: {
    50: '#a49e67',
    500: '#7b7828',
    950: '#000000',
  },
}
SCSS
$custom: #7b7828;
$custom-light: #a49e67;
$custom-dark: #000000;
JSON
{
  "hex": "#7b7828",
  "rgb": {
    "r": 123,
    "g": 120,
    "b": 40
  },
  "hsl": {
    "h": 57.831,
    "s": 50.92,
    "l": 31.961
  },
  "oklch": {
    "l": 0.55924,
    "c": 0.10078,
    "h": 107.2
  },
  "luminance": 0.17797
}

Semantic roles & 50–950 ramp

primary
#7B7828
secondary
#5255AD
accent
#52DA4D
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #7B7828

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

Preview Lab → · Contrast checker → · Palette generator →

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