#787131#787131

#787131 is a mid, moderate yellow. Relative luminance 0.160; OKLCH L 54.1% C 0.085 H 103.1°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#787131
RGBrgb(120, 113, 49)
HSLhsl(54, 42%, 33%)
HSVhsv(54, 59%, 47%)
CMYKcmyk(0%, 5.8%, 59.2%, 52.9%)
CIE-LABlab(47.01, -6.24, 35.84)
CIE-LCHlch(47.01, 36.38, 99.88°)
OKLaboklab(54.1% -0.0194 0.0832)
OKLCHoklch(54.1% 0.085 103.1)
XYZxyz(14.2057, 16.0256, 5.2501)
Luminance0.1603 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787131 #313878
analogous
#784D31 #787131 #5B7831
triadic
#787131 #317871 #713178
tetradic
#787131 #31784D #313878 #78315B
square
#787131 #31784D #313878 #78315B
split-complementary
#787131 #315B78 #4D3178
monochromatic
#211F0E #4D481F #787131 #A39A43 #C0B764

Accessibility & contrast

On white

4.99
#787131 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#787131 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #787131
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787131#FFFFFF#000000##FFFFFF
##7871311.004.994.204.99
#FFFFFF4.991.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6D2A
Deuteranopia (green-blind)
#7D7134
Tritanopia (blue-blind)
#806A63
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #787131;
/* rgb */ color: rgb(120, 113, 49);
/* oklch */ color: oklch(54.1% 0.085 103.1);
Tailwind
colors: {
  custom: {
    50: '#a1996b',
    500: '#787131',
    950: '#000000',
  },
}
SCSS
$custom: #787131;
$custom-light: #a1996b;
$custom-dark: #000000;
JSON
{
  "hex": "#787131",
  "rgb": {
    "r": 120,
    "g": 113,
    "b": 49
  },
  "hsl": {
    "h": 54.085,
    "s": 42.012,
    "l": 33.137
  },
  "oklch": {
    "l": 0.54102,
    "c": 0.08546,
    "h": 103.1
  },
  "luminance": 0.16025
}

Semantic roles & 50–950 ramp

primary
#787131
secondary
#5E65A7
accent
#62D256
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0D07
muted
#7F7E7A

Preview Lab

Preview with #787131

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

Preview Lab → · Contrast checker → · Palette generator →

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