#787828#787828

#787828 is a mid, moderate yellow. Relative luminance 0.176; OKLCH L 55.6% C 0.101 H 109.3°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#787828
RGBrgb(120, 120, 40)
HSLhsl(60, 50%, 31%)
HSVhsv(60, 67%, 47%)
CMYKcmyk(0%, 0%, 66.7%, 52.9%)
CIE-LABlab(48.98, -10.82, 42.29)
CIE-LCHlch(48.98, 43.65, 104.36°)
OKLaboklab(55.65% -0.0335 0.0956)
OKLCHoklch(55.65% 0.101 109.3)
XYZxyz(14.8457, 17.5796, 4.6183)
Luminance0.1758 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787828 #282878
analogous
#785028 #787828 #507828
triadic
#787828 #287878 #782878
tetradic
#787828 #287850 #282878 #782850
square
#787828 #287850 #282878 #782850
split-complementary
#787828 #285078 #502878
monochromatic
#1C1C09 #4A4A19 #787828 #A6A637 #C6C654

Accessibility & contrast

On white

4.65
#787828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#787828 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #787828
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787828#FFFFFF#000000##FFFFFF
##7878281.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #787828;
/* rgb */ color: rgb(120, 120, 40);
/* oklch */ color: oklch(55.6% 0.101 109.3);
Tailwind
colors: {
  custom: {
    50: '#a19e66',
    500: '#787828',
    950: '#000000',
  },
}
SCSS
$custom: #787828;
$custom-light: #a19e66;
$custom-dark: #000000;
JSON
{
  "hex": "#787828",
  "rgb": {
    "r": 120,
    "g": 120,
    "b": 40
  },
  "hsl": {
    "h": 60,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.55646,
    "c": 0.1013,
    "h": 109.3
  },
  "luminance": 0.17579
}

Semantic roles & 50–950 ramp

primary
#787828
secondary
#5252AA
accent
#4EDA4E
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #787828

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

Preview Lab → · Contrast checker → · Palette generator →

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