#787138#787138

#787138 is a mid, moderate yellow. Relative luminance 0.161; OKLCH L 54.2% C 0.078 H 102.3°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#787138
RGBrgb(120, 113, 56)
HSLhsl(53, 36%, 35%)
HSVhsv(53, 53%, 47%)
CMYKcmyk(0%, 5.8%, 53.3%, 52.9%)
CIE-LABlab(47.09, -5.61, 32.29)
CIE-LCHlch(47.09, 32.78, 99.86°)
OKLaboklab(54.2% -0.0167 0.0764)
OKLCHoklch(54.2% 0.078 102.3)
XYZxyz(14.3651, 16.0893, 6.0895)
Luminance0.1609 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787138 #383F78
analogous
#785138 #787138 #5F7838
triadic
#787138 #387871 #713878
tetradic
#787138 #387851 #383F78 #78385F
square
#787138 #387851 #383F78 #78385F
split-complementary
#787138 #385F78 #513878
monochromatic
#252211 #4E4A25 #787138 #A2984B #BCB36F

Accessibility & contrast

On white

4.98
#787138 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#787138 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #787138
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787138#FFFFFF#000000##FFFFFF
##7871381.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6E33
Deuteranopia (green-blind)
#7C713B
Tritanopia (blue-blind)
#806A64
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #787138;
/* rgb */ color: rgb(120, 113, 56);
/* oklch */ color: oklch(54.2% 0.078 102.3);
Tailwind
colors: {
  custom: {
    50: '#a19970',
    500: '#787138',
    950: '#000000',
  },
}
SCSS
$custom: #787138;
$custom-light: #a19970;
$custom-dark: #000000;
JSON
{
  "hex": "#787138",
  "rgb": {
    "r": 120,
    "g": 113,
    "b": 56
  },
  "hsl": {
    "h": 53.438,
    "s": 36.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.54195,
    "c": 0.07817,
    "h": 102.3
  },
  "luminance": 0.16089
}

Semantic roles & 50–950 ramp

primary
#787138
secondary
#676EA5
accent
#68CC5B
background
#FAF9F6
surface
#F3F2EC
border
#CDCCC7
text
#0F0D07
muted
#7F7E7A

Preview Lab

Preview with #787138

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

Preview Lab → · Contrast checker → · Palette generator →

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