#787D35#787D35

#787D35 is a mid, moderate yellow. Relative luminance 0.189; OKLCH L 57.0% C 0.096 H 112.7°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#787D35
RGBrgb(120, 125, 53)
HSLhsl(64, 40%, 35%)
HSVhsv(64, 58%, 49%)
CMYKcmyk(4%, 0%, 57.6%, 51%)
CIE-LABlab(50.59, -12.56, 37.91)
CIE-LCHlch(50.59, 39.93, 108.33°)
OKLaboklab(56.97% -0.0369 0.0882)
OKLCHoklch(56.97% 0.096 112.7)
XYZxyz(15.7223, 18.9176, 6.1907)
Luminance0.1892 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787D35 #3A357D
analogous
#7D5E35 #787D35 #547D35
triadic
#787D35 #35787D #7D3578
tetradic
#787D35 #357D5E #3A357D #7D3554
square
#787D35 #357D5E #3A357D #7D3554
split-complementary
#787D35 #35547D #5E357D
monochromatic
#252711 #4F5223 #787D35 #A1A847 #BBC16C

Accessibility & contrast

On white

4.39
#787D35 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#787D35 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787D35
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787D35#FFFFFF#000000##000000
##787D351.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#86782E
Deuteranopia (green-blind)
#867939
Tritanopia (blue-blind)
#7F766D
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #787d35;
/* rgb */ color: rgb(120, 125, 53);
/* oklch */ color: oklch(57.0% 0.096 112.7);
Tailwind
colors: {
  custom: {
    50: '#a1a26f',
    500: '#787d35',
    950: '#000000',
  },
}
SCSS
$custom: #787d35;
$custom-light: #a1a26f;
$custom-dark: #000000;
JSON
{
  "hex": "#787d35",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 53
  },
  "hsl": {
    "h": 64.167,
    "s": 40.449,
    "l": 34.902
  },
  "oklch": {
    "l": 0.56971,
    "c": 0.09556,
    "h": 112.7
  },
  "luminance": 0.18917
}

Semantic roles & 50–950 ramp

primary
#787D35
secondary
#6A65A9
accent
#57D060
background
#FAF9F6
surface
#F4F2EC
border
#CECCC7
text
#0F0F07
muted
#7F7E7A

Preview Lab

Preview with #787D35

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

Preview Lab → · Contrast checker → · Palette generator →

#787D35 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva