#7C7828#7C7828

#7C7828 is a mid, moderate yellow. Relative luminance 0.179; OKLCH L 56.0% C 0.101 H 106.5°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#7C7828
RGBrgb(124, 120, 40)
HSLhsl(57, 51%, 32%)
HSVhsv(57, 68%, 49%)
CMYKcmyk(0%, 3.2%, 67.7%, 51.4%)
CIE-LABlab(49.34, -8.98, 42.77)
CIE-LCHlch(49.34, 43.71, 101.86°)
OKLaboklab(56.02% -0.0285 0.0965)
OKLCHoklch(56.02% 0.101 106.5)
XYZxyz(15.4122, 17.8717, 4.6448)
Luminance0.1787 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C7828 #282C7C
analogous
#7C4E28 #7C7828 #567C28
triadic
#7C7828 #287C78 #78287C
tetradic
#7C7828 #287C4E #282C7C #7C2856
square
#7C7828 #287C4E #282C7C #7C2856
split-complementary
#7C7828 #28567C #4E287C
monochromatic
#1F1E0A #4E4B19 #7C7828 #AAA537 #C8C356

Accessibility & contrast

On white

4.59
#7C7828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#7C7828 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7C7828
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C7828#FFFFFF#000000##FFFFFF
##7C78281.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c7828;
/* rgb */ color: rgb(124, 120, 40);
/* oklch */ color: oklch(56.0% 0.101 106.5);
Tailwind
colors: {
  custom: {
    50: '#a49e67',
    500: '#7c7828',
    950: '#000000',
  },
}
SCSS
$custom: #7c7828;
$custom-light: #a49e67;
$custom-dark: #000000;
JSON
{
  "hex": "#7c7828",
  "rgb": {
    "r": 124,
    "g": 120,
    "b": 40
  },
  "hsl": {
    "h": 57.143,
    "s": 51.22,
    "l": 32.157
  },
  "oklch": {
    "l": 0.56019,
    "c": 0.10065,
    "h": 106.5
  },
  "luminance": 0.17871
}

Semantic roles & 50–950 ramp

primary
#7C7828
secondary
#5257AD
accent
#54DB4D
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E06
muted
#7F7E7A

Preview Lab

Preview with #7C7828

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

Preview Lab → · Contrast checker → · Palette generator →

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